Label the buttons to clear transfers correctly "Clear All"
This commit is contained in:
parent
4bd53e13e6
commit
a5a473eaad
2 changed files with 2 additions and 1 deletions
|
@ -5258,7 +5258,7 @@ midori_browser_init (MidoriBrowser* browser)
|
||||||
gtk_box_pack_start (GTK_BOX (browser->statusbar), browser->transferbar,
|
gtk_box_pack_start (GTK_BOX (browser->statusbar), browser->transferbar,
|
||||||
FALSE, FALSE, 3);
|
FALSE, FALSE, 3);
|
||||||
gtk_widget_show (browser->transferbar);
|
gtk_widget_show (browser->transferbar);
|
||||||
browser->transferbar_clear = gtk_button_new_with_label (_("Delete All"));
|
browser->transferbar_clear = gtk_button_new_with_label (_("Clear All"));
|
||||||
icon = gtk_image_new_from_stock (GTK_STOCK_CLEAR, GTK_ICON_SIZE_MENU);
|
icon = gtk_image_new_from_stock (GTK_STOCK_CLEAR, GTK_ICON_SIZE_MENU);
|
||||||
gtk_button_set_image (GTK_BUTTON (browser->transferbar_clear), icon);
|
gtk_button_set_image (GTK_BUTTON (browser->transferbar_clear), icon);
|
||||||
g_signal_connect (browser->transferbar_clear, "clicked",
|
g_signal_connect (browser->transferbar_clear, "clicked",
|
||||||
|
|
|
@ -140,6 +140,7 @@ midori_transfers_get_toolbar (MidoriViewable* transfers)
|
||||||
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), toolitem, -1);
|
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), toolitem, -1);
|
||||||
gtk_widget_show (GTK_WIDGET (toolitem));
|
gtk_widget_show (GTK_WIDGET (toolitem));
|
||||||
toolitem = gtk_tool_button_new_from_stock (GTK_STOCK_CLEAR);
|
toolitem = gtk_tool_button_new_from_stock (GTK_STOCK_CLEAR);
|
||||||
|
gtk_tool_button_set_label (GTK_TOOL_BUTTON (toolitem), _("Clear All"));
|
||||||
gtk_tool_item_set_is_important (toolitem, TRUE);
|
gtk_tool_item_set_is_important (toolitem, TRUE);
|
||||||
g_signal_connect (toolitem, "clicked",
|
g_signal_connect (toolitem, "clicked",
|
||||||
G_CALLBACK (midori_transfers_button_clear_clicked_cb), transfers);
|
G_CALLBACK (midori_transfers_button_clear_clicked_cb), transfers);
|
||||||
|
|
Loading…
Reference in a new issue