aboutsummaryrefslogtreecommitdiffstats
path: root/lib/egg/egg-editable-toolbar.c
diff options
context:
space:
mode:
authorJorn Baayen <jbaayen@src.gnome.org>2003-12-10 05:08:03 +0800
committerJorn Baayen <jbaayen@src.gnome.org>2003-12-10 05:08:03 +0800
commit8a7cfd5a9a6a2fe10c78199dd1a81c6a13118835 (patch)
tree5691e7555d0d9225aaff71dbe5063dd6bda4ff26 /lib/egg/egg-editable-toolbar.c
parent287581589f810fecf07c298c1dbcf90aa500f118 (diff)
downloadgsoc2013-epiphany-8a7cfd5a9a6a2fe10c78199dd1a81c6a13118835.tar
gsoc2013-epiphany-8a7cfd5a9a6a2fe10c78199dd1a81c6a13118835.tar.gz
gsoc2013-epiphany-8a7cfd5a9a6a2fe10c78199dd1a81c6a13118835.tar.bz2
gsoc2013-epiphany-8a7cfd5a9a6a2fe10c78199dd1a81c6a13118835.tar.lz
gsoc2013-epiphany-8a7cfd5a9a6a2fe10c78199dd1a81c6a13118835.tar.xz
gsoc2013-epiphany-8a7cfd5a9a6a2fe10c78199dd1a81c6a13118835.tar.zst
gsoc2013-epiphany-8a7cfd5a9a6a2fe10c78199dd1a81c6a13118835.zip
Make toolbar editing drag icons use the same icon size as the actual toolbar icons; sort actiosn in the toolbar editor; give the zoom action a zoom icon.
Diffstat (limited to 'lib/egg/egg-editable-toolbar.c')
-rwxr-xr-xlib/egg/egg-editable-toolbar.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/lib/egg/egg-editable-toolbar.c b/lib/egg/egg-editable-toolbar.c
index 73e1188cc..aef7aac60 100755
--- a/lib/egg/egg-editable-toolbar.c
+++ b/lib/egg/egg-editable-toolbar.c
@@ -298,13 +298,26 @@ set_item_drag_source (GtkWidget *item,
{
const char *stock_id;
GValue value = { 0, };
-
+ GdkPixbuf *pixbuf;
+
g_value_init (&value, G_TYPE_STRING);
g_object_get_property (G_OBJECT (action), "stock_id", &value);
-
stock_id = g_value_get_string (&value);
- gtk_drag_source_set_icon_stock
- (item, stock_id ? stock_id : GTK_STOCK_DND);
+
+ if (stock_id != NULL)
+ {
+ pixbuf = gtk_widget_render_icon (item, stock_id,
+ GTK_ICON_SIZE_LARGE_TOOLBAR, NULL);
+ }
+ else
+ {
+ pixbuf = gtk_widget_render_icon (item, GTK_STOCK_DND,
+ GTK_ICON_SIZE_LARGE_TOOLBAR, NULL);
+ }
+
+ gtk_drag_source_set_icon_pixbuf (item, pixbuf);
+ g_object_unref (pixbuf);
+
g_value_unset (&value);
}
}