mirror of https://github.com/GNOME/gimp.git
don't try to hide the tearoff menu item if tearoff menus are disabled in
2003-04-09 Sven Neumann <sven@gimp.org> * app/gui/image-menu.c (image_menu_setup): don't try to hide the tearoff menu item if tearoff menus are disabled in the prefs.
This commit is contained in:
parent
43c341c055
commit
d64317a0cc
|
@ -1,3 +1,8 @@
|
||||||
|
2003-04-09 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* app/gui/image-menu.c (image_menu_setup): don't try to hide the
|
||||||
|
tearoff menu item if tearoff menus are disabled in the prefs.
|
||||||
|
|
||||||
2003-04-09 Michael Natterer <mitch@gimp.org>
|
2003-04-09 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
* app/file/file-save.[ch] (file_save_as): added "gboolean
|
* app/file/file-save.[ch] (file_save_as): added "gboolean
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
|
|
||||||
#include "gui-types.h"
|
#include "gui-types.h"
|
||||||
|
|
||||||
|
#include "config/gimpguiconfig.h"
|
||||||
|
|
||||||
#include "core/gimp.h"
|
#include "core/gimp.h"
|
||||||
#include "core/gimpcontext.h"
|
#include "core/gimpcontext.h"
|
||||||
#include "core/gimpimage.h"
|
#include "core/gimpimage.h"
|
||||||
|
@ -857,8 +859,12 @@ image_menu_setup (GimpItemFactory *factory)
|
||||||
{
|
{
|
||||||
if (GTK_IS_MENU_BAR (GTK_ITEM_FACTORY (factory)->widget))
|
if (GTK_IS_MENU_BAR (GTK_ITEM_FACTORY (factory)->widget))
|
||||||
{
|
{
|
||||||
gimp_item_factory_set_visible (GTK_ITEM_FACTORY (factory),
|
if (GIMP_GUI_CONFIG (factory->gimp->config)->tearoff_menus)
|
||||||
"/tearoff", FALSE);
|
{
|
||||||
|
gimp_item_factory_set_visible (GTK_ITEM_FACTORY (factory),
|
||||||
|
"/tearoff", FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
gimp_item_factory_set_visible (GTK_ITEM_FACTORY (factory),
|
gimp_item_factory_set_visible (GTK_ITEM_FACTORY (factory),
|
||||||
"/filters-separator", FALSE);
|
"/filters-separator", FALSE);
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
|
|
||||||
#include "gui-types.h"
|
#include "gui-types.h"
|
||||||
|
|
||||||
|
#include "config/gimpguiconfig.h"
|
||||||
|
|
||||||
#include "core/gimp.h"
|
#include "core/gimp.h"
|
||||||
#include "core/gimpcontext.h"
|
#include "core/gimpcontext.h"
|
||||||
#include "core/gimpimage.h"
|
#include "core/gimpimage.h"
|
||||||
|
@ -857,8 +859,12 @@ image_menu_setup (GimpItemFactory *factory)
|
||||||
{
|
{
|
||||||
if (GTK_IS_MENU_BAR (GTK_ITEM_FACTORY (factory)->widget))
|
if (GTK_IS_MENU_BAR (GTK_ITEM_FACTORY (factory)->widget))
|
||||||
{
|
{
|
||||||
gimp_item_factory_set_visible (GTK_ITEM_FACTORY (factory),
|
if (GIMP_GUI_CONFIG (factory->gimp->config)->tearoff_menus)
|
||||||
"/tearoff", FALSE);
|
{
|
||||||
|
gimp_item_factory_set_visible (GTK_ITEM_FACTORY (factory),
|
||||||
|
"/tearoff", FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
gimp_item_factory_set_visible (GTK_ITEM_FACTORY (factory),
|
gimp_item_factory_set_visible (GTK_ITEM_FACTORY (factory),
|
||||||
"/filters-separator", FALSE);
|
"/filters-separator", FALSE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue