Use correct labels for panel align and detach buttons
This commit is contained in:
parent
a905219267
commit
60d3def11c
1 changed files with 7 additions and 0 deletions
|
@ -378,6 +378,8 @@ midori_panel_init (MidoriPanel* panel)
|
||||||
toolitem = gtk_tool_button_new_from_stock (GTK_STOCK_FULLSCREEN);
|
toolitem = gtk_tool_button_new_from_stock (GTK_STOCK_FULLSCREEN);
|
||||||
gtk_widget_set_sensitive (GTK_WIDGET (toolitem), FALSE);
|
gtk_widget_set_sensitive (GTK_WIDGET (toolitem), FALSE);
|
||||||
panel->button_detach = toolitem;
|
panel->button_detach = toolitem;
|
||||||
|
gtk_tool_button_set_label (GTK_TOOL_BUTTON (toolitem),
|
||||||
|
_("Detach chosen panel from the window"));
|
||||||
gtk_tool_item_set_tooltip_text (GTK_TOOL_ITEM (toolitem),
|
gtk_tool_item_set_tooltip_text (GTK_TOOL_ITEM (toolitem),
|
||||||
_("Detach chosen panel from the window"));
|
_("Detach chosen panel from the window"));
|
||||||
g_signal_connect (toolitem, "clicked",
|
g_signal_connect (toolitem, "clicked",
|
||||||
|
@ -388,6 +390,8 @@ midori_panel_init (MidoriPanel* panel)
|
||||||
gtk_toolbar_insert (GTK_TOOLBAR (labelbar), toolitem, -1);
|
gtk_toolbar_insert (GTK_TOOLBAR (labelbar), toolitem, -1);
|
||||||
#endif
|
#endif
|
||||||
toolitem = gtk_tool_button_new_from_stock (GTK_STOCK_GO_FORWARD);
|
toolitem = gtk_tool_button_new_from_stock (GTK_STOCK_GO_FORWARD);
|
||||||
|
gtk_tool_button_set_label (GTK_TOOL_BUTTON (toolitem),
|
||||||
|
_("Align sidepanel to the right"));
|
||||||
gtk_tool_item_set_tooltip_text (GTK_TOOL_ITEM (toolitem),
|
gtk_tool_item_set_tooltip_text (GTK_TOOL_ITEM (toolitem),
|
||||||
_("Align sidepanel to the right"));
|
_("Align sidepanel to the right"));
|
||||||
g_signal_connect (toolitem, "clicked",
|
g_signal_connect (toolitem, "clicked",
|
||||||
|
@ -569,6 +573,9 @@ midori_panel_set_right_aligned (MidoriPanel* panel,
|
||||||
gtk_tool_button_set_stock_id (GTK_TOOL_BUTTON (panel->button_align),
|
gtk_tool_button_set_stock_id (GTK_TOOL_BUTTON (panel->button_align),
|
||||||
right_aligned ? GTK_STOCK_GO_BACK : GTK_STOCK_GO_FORWARD);
|
right_aligned ? GTK_STOCK_GO_BACK : GTK_STOCK_GO_FORWARD);
|
||||||
panel->right_aligned = right_aligned;
|
panel->right_aligned = right_aligned;
|
||||||
|
gtk_tool_button_set_label (GTK_TOOL_BUTTON (panel->button_align),
|
||||||
|
!panel->right_aligned ? _("Align sidepanel to the right")
|
||||||
|
: _("Align sidepanel to the left"));
|
||||||
gtk_tool_item_set_tooltip_text (GTK_TOOL_ITEM (panel->button_align),
|
gtk_tool_item_set_tooltip_text (GTK_TOOL_ITEM (panel->button_align),
|
||||||
!panel->right_aligned ? _("Align sidepanel to the right")
|
!panel->right_aligned ? _("Align sidepanel to the right")
|
||||||
: _("Align sidepanel to the left"));
|
: _("Align sidepanel to the left"));
|
||||||
|
|
Loading…
Reference in a new issue