Commit 04263ccb authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

Oops, GimpContainer's "removed" signal has more parameters than "add" and

2002-03-19  Michael Natterer  <mitch@gimp.org>

	* app/gui/menus.c: Oops, GimpContainer's "removed" signal has more
	parameters than "add" and "remove", which is quite relevant now
	that we use the data pointer passed to the callback :)
	Pointed out by Dave Neary on #gimp.
parent fb728a9a
2002-03-19 Michael Natterer <mitch@gimp.org>
* app/gui/menus.c: Oops, GimpContainer's "removed" signal has more
parameters than "add" and "remove", which is quite relevant now
that we use the data pointer passed to the callback :)
Pointed out by Dave Neary on #gimp.
2002-03-19 Michael Natterer <mitch@gimp.org>
 
* app/tools/tools-types.h: added enum GimpMotionMode which can be
......
......@@ -79,6 +79,10 @@ static void menus_last_opened_add (GimpItemFactory *item_factory,
static void menus_last_opened_update (GimpContainer *container,
GimpImagefile *unused,
GimpItemFactory *item_factory);
static void menus_last_opened_reorder (GimpContainer *container,
GimpImagefile *unused1,
gint unused2,
GimpItemFactory *item_factory);
static void menus_color_changed (GimpContext *context,
const GimpRGB *unused,
Gimp *gimp);
......@@ -2167,11 +2171,17 @@ menus_exit (Gimp *gimp)
g_signal_handlers_disconnect_by_func (G_OBJECT (gimp->documents),
menus_last_opened_update,
item_factory);
g_signal_handlers_disconnect_by_func (G_OBJECT (gimp->documents),
menus_last_opened_reorder,
item_factory);
item_factory = gimp_item_factory_from_path ("<Image>");
g_signal_handlers_disconnect_by_func (G_OBJECT (gimp->documents),
menus_last_opened_update,
item_factory);
g_signal_handlers_disconnect_by_func (G_OBJECT (gimp->documents),
menus_last_opened_reorder,
item_factory);
filename = gimp_personal_rc_file ("menurc");
gtk_accel_map_save (filename);
......@@ -2442,7 +2452,7 @@ menus_last_opened_add (GimpItemFactory *item_factory,
G_CALLBACK (menus_last_opened_update),
item_factory);
g_signal_connect (G_OBJECT (gimp->documents), "reorder",
G_CALLBACK (menus_last_opened_update),
G_CALLBACK (menus_last_opened_reorder),
item_factory);
menus_last_opened_update (gimp->documents, NULL, item_factory);
......@@ -2509,6 +2519,15 @@ menus_last_opened_update (GimpContainer *container,
}
}
static void
menus_last_opened_reorder (GimpContainer *container,
GimpImagefile *unused1,
gint unused2,
GimpItemFactory *item_factory)
{
menus_last_opened_update (container, unused1, item_factory);
}
static void
menus_color_changed (GimpContext *context,
const GimpRGB *unused,
......
......@@ -79,6 +79,10 @@ static void menus_last_opened_add (GimpItemFactory *item_factory,
static void menus_last_opened_update (GimpContainer *container,
GimpImagefile *unused,
GimpItemFactory *item_factory);
static void menus_last_opened_reorder (GimpContainer *container,
GimpImagefile *unused1,
gint unused2,
GimpItemFactory *item_factory);
static void menus_color_changed (GimpContext *context,
const GimpRGB *unused,
Gimp *gimp);
......@@ -2167,11 +2171,17 @@ menus_exit (Gimp *gimp)
g_signal_handlers_disconnect_by_func (G_OBJECT (gimp->documents),
menus_last_opened_update,
item_factory);
g_signal_handlers_disconnect_by_func (G_OBJECT (gimp->documents),
menus_last_opened_reorder,
item_factory);
item_factory = gimp_item_factory_from_path ("<Image>");
g_signal_handlers_disconnect_by_func (G_OBJECT (gimp->documents),
menus_last_opened_update,
item_factory);
g_signal_handlers_disconnect_by_func (G_OBJECT (gimp->documents),
menus_last_opened_reorder,
item_factory);
filename = gimp_personal_rc_file ("menurc");
gtk_accel_map_save (filename);
......@@ -2442,7 +2452,7 @@ menus_last_opened_add (GimpItemFactory *item_factory,
G_CALLBACK (menus_last_opened_update),
item_factory);
g_signal_connect (G_OBJECT (gimp->documents), "reorder",
G_CALLBACK (menus_last_opened_update),
G_CALLBACK (menus_last_opened_reorder),
item_factory);
menus_last_opened_update (gimp->documents, NULL, item_factory);
......@@ -2509,6 +2519,15 @@ menus_last_opened_update (GimpContainer *container,
}
}
static void
menus_last_opened_reorder (GimpContainer *container,
GimpImagefile *unused1,
gint unused2,
GimpItemFactory *item_factory)
{
menus_last_opened_update (container, unused1, item_factory);
}
static void
menus_color_changed (GimpContext *context,
const GimpRGB *unused,
......
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