[Xfce4-commits] [xfce/xfce4-session] 01/01: Improve column layout of autostart tab (Bug #15448)

noreply at xfce.org noreply at xfce.org
Sat Jun 22 00:15:47 CEST 2019


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

o   c   h   o   s   i       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-session.

commit 73e1213825cc882c932aafb016f8a13f97c17d34
Author: Theo Linkspfeifer <lastonestanding at tutanota.com>
Date:   Sat Jun 22 00:02:08 2019 +0200

    Improve column layout of autostart tab (Bug #15448)
    
    Moving the trigger column to the right makes it more consistent with the
    "Current Session" column layout.
---
 settings/xfae-window.c             | 39 +++++++++++++++++++++-----------------
 settings/xfce4-session-settings.ui |  2 +-
 2 files changed, 23 insertions(+), 18 deletions(-)

diff --git a/settings/xfae-window.c b/settings/xfae-window.c
index 049f1f3..5f54d52 100644
--- a/settings/xfae-window.c
+++ b/settings/xfae-window.c
@@ -193,6 +193,28 @@ xfae_window_init (XfaeWindow *window)
   column = g_object_new (GTK_TYPE_TREE_VIEW_COLUMN,
                          "reorderable", FALSE,
                          "resizable", FALSE,
+                         "expand", TRUE,
+                         NULL);
+  gtk_tree_view_column_set_title (column, _("Program"));
+  renderer = gtk_cell_renderer_pixbuf_new ();
+  gtk_tree_view_column_pack_start (column, renderer, FALSE);
+  gtk_tree_view_column_set_attributes (column, renderer,
+                                       "pixbuf", XFAE_MODEL_COLUMN_ICON,
+                                       NULL);
+  renderer = gtk_cell_renderer_text_new ();
+  g_object_set (renderer,
+                "ellipsize", PANGO_ELLIPSIZE_END,
+                NULL);
+  gtk_tree_view_column_pack_start (column, renderer, TRUE);
+  gtk_tree_view_column_set_attributes (column, renderer,
+                                       "markup", XFAE_MODEL_COLUMN_NAME,
+                                       NULL);
+
+  gtk_tree_view_append_column (GTK_TREE_VIEW (window->treeview), column);
+
+  column = g_object_new (GTK_TYPE_TREE_VIEW_COLUMN,
+                         "reorderable", FALSE,
+                         "resizable", FALSE,
                          NULL);
   gtk_tree_view_column_set_title (column, _("Trigger"));
   renderer = gtk_cell_renderer_combo_new ();
@@ -212,23 +234,6 @@ xfae_window_init (XfaeWindow *window)
                                        NULL);
   gtk_tree_view_append_column (GTK_TREE_VIEW (window->treeview), column);
   g_object_unref (model);
-  column = g_object_new (GTK_TYPE_TREE_VIEW_COLUMN,
-                         "reorderable", FALSE,
-                         "resizable", FALSE,
-                         NULL);
-  gtk_tree_view_column_set_title (column, _("Program"));
-  renderer = gtk_cell_renderer_pixbuf_new ();
-  gtk_tree_view_column_pack_start (column, renderer, FALSE);
-  gtk_tree_view_column_set_attributes (column, renderer,
-                                       "pixbuf", XFAE_MODEL_COLUMN_ICON,
-                                       NULL);
-  renderer = gtk_cell_renderer_text_new ();
-  gtk_tree_view_column_pack_start (column, renderer, TRUE);
-  gtk_tree_view_column_set_attributes (column, renderer,
-                                       "markup", XFAE_MODEL_COLUMN_NAME,
-                                       NULL);
-
-  gtk_tree_view_append_column (GTK_TREE_VIEW (window->treeview), column);
 
   bbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
   gtk_box_pack_start (GTK_BOX (vbox), bbox, FALSE, TRUE, 0);
diff --git a/settings/xfce4-session-settings.ui b/settings/xfce4-session-settings.ui
index 03d42e3..6fcac87 100644
--- a/settings/xfce4-session-settings.ui
+++ b/settings/xfce4-session-settings.ui
@@ -28,7 +28,7 @@
     <property name="title" translatable="yes">Session and Startup</property>
     <property name="window_position">center-on-parent</property>
     <property name="default_width">600</property>
-    <property name="default_height">400</property>
+    <property name="default_height">500</property>
     <property name="icon_name">xfce4-session</property>
     <property name="type_hint">dialog</property>
     <child internal-child="vbox">

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


More information about the Xfce4-commits mailing list