[Xfce4-commits] [xfce/xfce4-settings] 16/22: mimetype: Improved statusbar margins

noreply at xfce.org noreply at xfce.org
Tue Sep 4 02:31:07 CEST 2018


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-settings.

commit 19943ff96fe26c11842e38933b50369ba68ce0d6
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Sat Sep 1 13:39:41 2018 -0400

    mimetype: Improved statusbar margins
---
 dialogs/mime-settings/xfce-mime-window.c | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/dialogs/mime-settings/xfce-mime-window.c b/dialogs/mime-settings/xfce-mime-window.c
index 38f501f..3d4202f 100644
--- a/dialogs/mime-settings/xfce-mime-window.c
+++ b/dialogs/mime-settings/xfce-mime-window.c
@@ -220,6 +220,11 @@ xfce_mime_window_init (XfceMimeWindow *window)
     window->desc_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (statusbar), "desc");
     window->count_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (statusbar), "count");
     xfce_mime_window_statusbar_count (window, n_mime_types);
+
+    gtk_widget_set_margin_top (statusbar, 0);
+    gtk_widget_set_margin_bottom (statusbar, 6);
+    gtk_widget_set_margin_start (statusbar, 2);
+
     gtk_widget_show (statusbar);
 
     window->filter_model = gtk_tree_model_filter_new (window->mime_model, NULL);
@@ -252,14 +257,6 @@ xfce_mime_window_init (XfceMimeWindow *window)
         G_CALLBACK (xfce_mime_window_column_clicked), window);
     gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column);
 
-    /* HACK - Disabled as we move to GTK3 */
-    /* https://bugzilla.gnome.org/show_bug.cgi?id=668428 */
-    /*
-    column->use_resized_width = TRUE;
-    column->resized_width = xfconf_channel_get_int (window->channel,
-                                                    "/last/mime-width",
-                                                    300);
-    */
     gtk_tree_view_column_set_min_width (column, 300);
     gtk_tree_view_column_set_fixed_width (column, xfconf_channel_get_int (window->channel,
                                                                           "/last/mime-width",

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list