[gthumb] browser: added a tooltip for the properties button



commit 13f17708320db04d382a9482a821be0e02969868
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Jan 8 17:28:16 2019 +0100

    browser: added a tooltip for the properties button

 gthumb/gth-browser.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index b37cb155..8b73c1e4 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -4675,16 +4675,17 @@ gth_browser_init (GthBrowser *browser)
 
                /* statusbar commands in browser mode */
 
-               browser->priv->browser_status_commands = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
+               browser->priv->browser_status_commands = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
                gtk_widget_show (browser->priv->browser_status_commands);
-               /*gtk_style_context_add_class (gtk_widget_get_style_context 
(browser->priv->browser_status_commands), GTK_STYLE_CLASS_LINKED);*/
+               gtk_style_context_add_class (gtk_widget_get_style_context 
(browser->priv->browser_status_commands), GTK_STYLE_CLASS_LINKED);
                gtk_box_pack_start (GTK_BOX (gth_statubar_get_action_area (GTH_STATUSBAR 
(browser->priv->statusbar))), browser->priv->browser_status_commands, FALSE, FALSE, 0);
 
                button = gtk_toggle_button_new ();
                gtk_container_add (GTK_CONTAINER (button), gtk_image_new_from_icon_name 
("dialog-information-symbolic", GTK_ICON_SIZE_MENU));
+               gtk_widget_set_tooltip_text (button, _("Properties"));
                gtk_widget_show_all (button);
                gtk_actionable_set_action_name (GTK_ACTIONABLE (button), "win.browser-properties");
-               gtk_box_pack_end (GTK_BOX (browser->priv->browser_status_commands), button, FALSE, FALSE, 0);
+               gtk_box_pack_start (GTK_BOX (browser->priv->browser_status_commands), button, FALSE, FALSE, 
0);
 
                /* statusbar commands in viewer mode */
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]