Commit d7adc8ad authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

set empty menu_items used as separators insensitive. Something seems to be

2000-12-03  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpunitmenu.c (gimp_unit_menu_new): set empty menu_items
	used as separators insensitive. Something seems to be wrong in GTK+
	when it comes to separators in option_menus. This change seems to
	work around this problem.
parent bb76c110
2000-12-03 Sven Neumann <sven@gimp.org>
* libgimp/gimpunitmenu.c (gimp_unit_menu_new): set empty menu_items
used as separators insensitive. Something seems to be wrong in GTK+
when it comes to separators in option_menus. This change seems to
work around this problem.
2000-12-03 Sven Neumann <sven@gimp.org>
* PLUGIN_MAINTAINERS: changed email address of Wolfgang Hofer
......
......@@ -195,6 +195,7 @@ gimp_unit_menu_new (const gchar *format,
{
menuitem = gtk_menu_item_new ();
gtk_menu_append (GTK_MENU (menu), menuitem);
gtk_widget_set_sensitive (menuitem, FALSE);
gtk_widget_show (menuitem);
}
}
......@@ -215,6 +216,7 @@ gimp_unit_menu_new (const gchar *format,
{
menuitem = gtk_menu_item_new ();
gtk_menu_append (GTK_MENU (menu), menuitem);
gtk_widget_set_sensitive (menuitem, FALSE);
gtk_widget_show (menuitem);
menuitem =
......@@ -232,6 +234,7 @@ gimp_unit_menu_new (const gchar *format,
{
menuitem = gtk_menu_item_new ();
gtk_menu_append (GTK_MENU (menu), menuitem);
gtk_widget_set_sensitive (menuitem, FALSE);
gtk_widget_show (menuitem);
menuitem =
......@@ -573,9 +576,10 @@ gimp_unit_menu_create_selection (GimpUnitMenu *gum)
if (gum->unit >= GIMP_UNIT_END)
{
gtk_clist_select_row (GTK_CLIST (gum->clist), gum->unit - GIMP_UNIT_END, 0);
gtk_clist_moveto (GTK_CLIST (gum->clist), gum->unit - GIMP_UNIT_END,
0, 0.0, 0.0);
gtk_clist_select_row (GTK_CLIST (gum->clist),
gum->unit - GIMP_UNIT_END, 0);
gtk_clist_moveto (GTK_CLIST (gum->clist),
gum->unit - GIMP_UNIT_END, 0, 0.0, 0.0);
}
}
......
......@@ -195,6 +195,7 @@ gimp_unit_menu_new (const gchar *format,
{
menuitem = gtk_menu_item_new ();
gtk_menu_append (GTK_MENU (menu), menuitem);
gtk_widget_set_sensitive (menuitem, FALSE);
gtk_widget_show (menuitem);
}
}
......@@ -215,6 +216,7 @@ gimp_unit_menu_new (const gchar *format,
{
menuitem = gtk_menu_item_new ();
gtk_menu_append (GTK_MENU (menu), menuitem);
gtk_widget_set_sensitive (menuitem, FALSE);
gtk_widget_show (menuitem);
menuitem =
......@@ -232,6 +234,7 @@ gimp_unit_menu_new (const gchar *format,
{
menuitem = gtk_menu_item_new ();
gtk_menu_append (GTK_MENU (menu), menuitem);
gtk_widget_set_sensitive (menuitem, FALSE);
gtk_widget_show (menuitem);
menuitem =
......@@ -573,9 +576,10 @@ gimp_unit_menu_create_selection (GimpUnitMenu *gum)
if (gum->unit >= GIMP_UNIT_END)
{
gtk_clist_select_row (GTK_CLIST (gum->clist), gum->unit - GIMP_UNIT_END, 0);
gtk_clist_moveto (GTK_CLIST (gum->clist), gum->unit - GIMP_UNIT_END,
0, 0.0, 0.0);
gtk_clist_select_row (GTK_CLIST (gum->clist),
gum->unit - GIMP_UNIT_END, 0);
gtk_clist_moveto (GTK_CLIST (gum->clist),
gum->unit - GIMP_UNIT_END, 0, 0.0, 0.0);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment