aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-06-28 15:49:32 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-06-28 15:49:32 +0800
commit5178020d52873aec82c4c83873b54c25cf6bc770 (patch)
treef0557da992c52eda8ec742fb864509b550435bcb /lib
parentc6603174ea1a92f7ff07f2771f8db893e9e510d4 (diff)
downloadgsoc2013-epiphany-5178020d52873aec82c4c83873b54c25cf6bc770.tar
gsoc2013-epiphany-5178020d52873aec82c4c83873b54c25cf6bc770.tar.gz
gsoc2013-epiphany-5178020d52873aec82c4c83873b54c25cf6bc770.tar.bz2
gsoc2013-epiphany-5178020d52873aec82c4c83873b54c25cf6bc770.tar.lz
gsoc2013-epiphany-5178020d52873aec82c4c83873b54c25cf6bc770.tar.xz
gsoc2013-epiphany-5178020d52873aec82c4c83873b54c25cf6bc770.tar.zst
gsoc2013-epiphany-5178020d52873aec82c4c83873b54c25cf6bc770.zip
Update.
2003-06-28 Marco Pesenti Gritti <marco@it.gnome.org> * lib/egg/egg-editable-toolbar.c: (set_item_drag_source), (create_item): Update.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/egg/egg-editable-toolbar.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/egg/egg-editable-toolbar.c b/lib/egg/egg-editable-toolbar.c
index 619350d27..aa07db8a1 100755
--- a/lib/egg/egg-editable-toolbar.c
+++ b/lib/egg/egg-editable-toolbar.c
@@ -313,9 +313,10 @@ set_item_drag_source (GtkWidget *item,
if (is_separator)
{
GtkWidget *icon;
+ GdkPixbuf *pixbuf;
icon = _egg_editable_toolbar_new_separator_image ();
- GdkPixbuf *pixbuf = gtk_image_get_pixbuf (GTK_IMAGE (icon));
+ pixbuf = gtk_image_get_pixbuf (GTK_IMAGE (icon));
gtk_drag_source_set_icon_pixbuf (item, pixbuf);
}
else
@@ -339,8 +340,6 @@ create_item (EggEditableToolbar *t,
action_name = egg_toolbars_model_item_nth
(model, toolbar_position, position,
&is_separator);
- g_signal_emit (G_OBJECT (t), egg_editable_toolbar_signals[ACTION_REQUEST],
- 0, action_name);
action = find_action (t, action_name);
if (is_separator)
@@ -349,6 +348,8 @@ create_item (EggEditableToolbar *t,
}
else
{
+ g_signal_emit (G_OBJECT (t), egg_editable_toolbar_signals[ACTION_REQUEST],
+ 0, action_name);
item = egg_action_create_tool_item (action);
gtk_widget_set_sensitive (item, TRUE);
}