[Xfce4-commits] <xfce4-settings:bluesabre/display-settings> Improve visual appearance of the iconview

Nick Schermer noreply at xfce.org
Mon Dec 9 12:57:37 CET 2013


Updating branch refs/heads/bluesabre/display-settings
         to a0e2c72df9399924b8acc7d39a8540aba73508c0 (commit)
       from a89421cc58668a114c71f923e7cd64f7215950c1 (commit)

commit a0e2c72df9399924b8acc7d39a8540aba73508c0
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Thu Oct 25 12:24:02 2012 +0200

    Improve visual appearance of the iconview

 dialogs/display-settings/display-dialog.glade |    8 +++-----
 dialogs/display-settings/main.c               |    3 ++-
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/dialogs/display-settings/display-dialog.glade b/dialogs/display-settings/display-dialog.glade
index 10276ce..de95707 100644
--- a/dialogs/display-settings/display-dialog.glade
+++ b/dialogs/display-settings/display-dialog.glade
@@ -69,7 +69,6 @@
             <property name="spacing">12</property>
             <child>
               <object class="GtkScrolledWindow" id="scrolledwindow1">
-                <property name="width_request">200</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="hscrollbar_policy">never</property>
@@ -79,15 +78,14 @@
                   <object class="GtkIconView" id="randr-outputs">
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
-                    <property name="item_orientation">horizontal</property>
                     <property name="columns">1</property>
-                    <property name="spacing">6</property>
+                    <property name="column_spacing">0</property>
                   </object>
                 </child>
               </object>
               <packing>
-                <property name="expand">True</property>
-                <property name="fill">True</property>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
                 <property name="position">0</property>
               </packing>
             </child>
diff --git a/dialogs/display-settings/main.c b/dialogs/display-settings/main.c
index bfd1cc9..738c04a 100644
--- a/dialogs/display-settings/main.c
+++ b/dialogs/display-settings/main.c
@@ -1400,11 +1400,12 @@ display_settings_iconview_populate (GtkBuilder *builder)
     /* Set the iconview model */
     iconview = gtk_builder_get_object (builder, "randr-outputs");
     gtk_icon_view_set_model (GTK_ICON_VIEW (iconview), GTK_TREE_MODEL (store));
+    gtk_icon_view_set_item_width (GTK_ICON_VIEW (iconview), 48*2);
 
     /* Get the display icon */
     display_icon =
         gtk_icon_theme_load_icon (gtk_icon_theme_get_default (), "display-icon",
-                                  32,
+                                  48,
                                   GTK_ICON_LOOKUP_GENERIC_FALLBACK,
                                   NULL);
 


More information about the Xfce4-commits mailing list