aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rwxr-xr-xlib/egg/egg-editable-toolbar.c7
2 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index de19b038c..3d41c7d17 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2003-06-28 Marco Pesenti Gritti <marco@it.gnome.org>
+ * lib/egg/egg-editable-toolbar.c: (set_item_drag_source),
+ (create_item):
+
+ Update.
+
+2003-06-28 Marco Pesenti Gritti <marco@it.gnome.org>
+
* embed/downloader-view.c: (downloader_view_update_controls),
(downloader_view_set_download_info):
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);
}