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:
Sven Neumann 2003-04-09 11:13:00 +00:00 committed by Sven Neumann
parent 43c341c055
commit d64317a0cc
3 changed files with 21 additions and 4 deletions

View File

@ -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>
* app/file/file-save.[ch] (file_save_as): added "gboolean

View File

@ -24,6 +24,8 @@
#include "gui-types.h"
#include "config/gimpguiconfig.h"
#include "core/gimp.h"
#include "core/gimpcontext.h"
#include "core/gimpimage.h"
@ -857,8 +859,12 @@ image_menu_setup (GimpItemFactory *factory)
{
if (GTK_IS_MENU_BAR (GTK_ITEM_FACTORY (factory)->widget))
{
gimp_item_factory_set_visible (GTK_ITEM_FACTORY (factory),
"/tearoff", FALSE);
if (GIMP_GUI_CONFIG (factory->gimp->config)->tearoff_menus)
{
gimp_item_factory_set_visible (GTK_ITEM_FACTORY (factory),
"/tearoff", FALSE);
}
gimp_item_factory_set_visible (GTK_ITEM_FACTORY (factory),
"/filters-separator", FALSE);
}

View File

@ -24,6 +24,8 @@
#include "gui-types.h"
#include "config/gimpguiconfig.h"
#include "core/gimp.h"
#include "core/gimpcontext.h"
#include "core/gimpimage.h"
@ -857,8 +859,12 @@ image_menu_setup (GimpItemFactory *factory)
{
if (GTK_IS_MENU_BAR (GTK_ITEM_FACTORY (factory)->widget))
{
gimp_item_factory_set_visible (GTK_ITEM_FACTORY (factory),
"/tearoff", FALSE);
if (GIMP_GUI_CONFIG (factory->gimp->config)->tearoff_menus)
{
gimp_item_factory_set_visible (GTK_ITEM_FACTORY (factory),
"/tearoff", FALSE);
}
gimp_item_factory_set_visible (GTK_ITEM_FACTORY (factory),
"/filters-separator", FALSE);
}