Little UI adjustment for LXAppearance
authorHong Jen Yee (PCMan) <pcman.tw@gmail.com>
Sun, 20 Dec 2009 06:35:38 +0000 (06:35 +0000)
committerHong Jen Yee (PCMan) <pcman.tw@gmail.com>
Sun, 20 Dec 2009 06:35:38 +0000 (06:35 +0000)
data/demo.glade
src/demo.c
src/main-dlg.c

index 90729f4..2083581 100644 (file)
               <object class="GtkIconView" id="icon_view">
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
+                <property name="item_width">100</property>
+                <property name="spacing">8</property>
               </object>
             </child>
           </object>
index 8f838a5..e3841f6 100644 (file)
@@ -90,9 +90,6 @@ void show_demo( GdkNativeWindow wid )
 
     gtk_icon_view_set_pixbuf_column( icon_view, 0 );
     gtk_icon_view_set_text_column( icon_view, 1 );
-    gtk_icon_view_set_item_width( icon_view, 64 );
-    gtk_icon_view_set_column_spacing( icon_view, 8 );
-    gtk_icon_view_set_row_spacing( icon_view, 8 );
 
     load_demo_icons();
     load_demo_tree_view( (GtkTreeView*)tree_view );
index 157490f..d3954c0 100644 (file)
@@ -697,11 +697,11 @@ on_remove_theme_clicked                (GtkButton       *button,
 
 }
 
-#if CURSOR_THEME
 void
 on_cursor_size_changed                 (GtkHScale       *cursorsizescale,
                                         gpointer         user_data)
 {
+#if CURSOR_THEME
     cursor_theme_size = gtk_range_get_value( GTK_RANGE(cursorsizescale) );
 
        if( under_lxsession )
@@ -714,8 +714,8 @@ on_cursor_size_changed                 (GtkHScale       *cursorsizescale,
                write_rc_file( tmp_rc_file );
                reload_demo_process();
        }
-}
 #endif
+}
 
 void
 on_tb_style_changed                    (GtkComboBox     *combobox,