move "selection_mode" to glade file and remove hard-coded item width

2007-06-28  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (themes_init):
	* appearance.glade: move "selection_mode" to glade file and remove
	hard-coded item width

svn path=/trunk/; revision=7799
This commit is contained in:
Jens Granseuer 2007-06-28 20:07:34 +00:00 committed by Jens Granseuer
parent ca722b9177
commit 5ae27eac8f
3 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2007-06-28 Jens Granseuer <jensgr@gmx.net>
* appearance-themes.c: (themes_init):
* appearance.glade: move "selection_mode" to glade file and remove
hard-coded item width
2007-06-28 Jens Granseuer <jensgr@gmx.net>
* appearance-themes.c: (theme_store_sort_func), (themes_init): fix leaks,

View file

@ -520,7 +520,7 @@ themes_init (AppearanceData *data)
gnome_theme_info_register_theme_change ((ThemeChangedCallback) theme_changed_on_disk_cb, data);
data->theme_custom->name = g_strdup (CUSTOM_THEME_NAME);
data->theme_custom->readable_name = g_strdup_printf ("<b>%s</b>", _("Custom"));
data->theme_custom->readable_name = g_strdup_printf ("<i>%s</i>", _("Custom"));
theme_load_from_gconf (data->client, data->theme_custom);
for (l = theme_list; l; l = l->next) {
@ -555,7 +555,6 @@ themes_init (AppearanceData *data)
g_list_free (theme_list);
w = glade_xml_get_widget (data->xml, "theme_list");
gtk_icon_view_set_selection_mode (GTK_ICON_VIEW (w), GTK_SELECTION_BROWSE);
sort_model = gtk_tree_model_sort_new_with_model (GTK_TREE_MODEL (theme_store));
gtk_icon_view_set_model (GTK_ICON_VIEW (w), GTK_TREE_MODEL (sort_model));
gtk_tree_sortable_set_sort_func (GTK_TREE_SORTABLE (sort_model), COL_LABEL, theme_store_sort_func, NULL, NULL);

View file

@ -628,7 +628,6 @@
<property name="spacing">6</property>
<child>
<widget class="GtkScrolledWindow" id="scrolledwindow1">
<property name="height_request">125</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
@ -640,12 +639,12 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="selection_mode">GTK_SELECTION_BROWSE</property>
<property name="pixbuf_column">0</property>
<property name="markup_column">1</property>
<property name="row_spacing">18</property>
<property name="column_spacing">18</property>
<property name="spacing">3</property>
<property name="item_width">150</property>
<property name="margin">18</property>
</widget>
</child>