From 9020e8ede7304c5b2aab08b4228933f4326d412f Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 11 Jan 2014 15:23:53 -0600 Subject: [PATCH] Fixed a toolbar button with Gtk+ < 2.8 --- src/plugins/trash.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugins/trash.c b/src/plugins/trash.c index 64a5043..b6f8689 100644 --- a/src/plugins/trash.c +++ b/src/plugins/trash.c @@ -152,11 +152,13 @@ static Trash * _trash_init(BrowserPluginHelper * helper) widget = gtk_toolbar_new(); /* move to trash */ /* FIXME handle sensitiveness of this button */ - toolitem = gtk_tool_button_new(NULL, _(TEXT_MOVETOTRASH)); #if GTK_CHECK_VERSION(2, 8, 0) + toolitem = gtk_tool_button_new(NULL, _(TEXT_MOVETOTRASH)); gtk_tool_button_set_icon_name(GTK_TOOL_BUTTON(toolitem), PLUGIN_ICON); #else - /* FIXME implement */ + toolitem = gtk_tool_button_new(gtk_image_new_from_icon_name(PLUGIN_ICON, + GTK_ICON_SIZE_SMALL_TOOLBAR), + _(TEXT_MOVETOTRASH)); #endif /* FIXME handle the signal */ gtk_toolbar_insert(GTK_TOOLBAR(widget), toolitem, -1);