gnome-control-center r8856 - trunk/capplets/appearance
- From: jensg svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-control-center r8856 - trunk/capplets/appearance
- Date: Tue, 12 Aug 2008 21:36:19 +0000 (UTC)
Author: jensg
Date: Tue Aug 12 21:36:19 2008
New Revision: 8856
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=8856&view=rev
Log:
2008-08-12 Jens Granseuer <jensgr gmx net>
* appearance-style.c: (conv_to_widget_cb), (prepare_list): when
adding an unknown theme to the list because it has been selected use
the corresponding default icon to represent it
Modified:
trunk/capplets/appearance/ChangeLog
trunk/capplets/appearance/appearance-style.c
Modified: trunk/capplets/appearance/appearance-style.c
==============================================================================
--- trunk/capplets/appearance/appearance-style.c (original)
+++ trunk/capplets/appearance/appearance-style.c Tue Aug 12 21:36:19 2008
@@ -96,12 +96,16 @@
{
GtkListStore *list_store;
GtkTreeIter iter, sort_iter;
+ GdkPixbuf *thumbnail;
list_store = GTK_LIST_STORE (gtk_tree_model_sort_get_model (GTK_TREE_MODEL_SORT (store)));
+ g_object_get (peditor, "data", &thumbnail, NULL);
gtk_list_store_insert_with_values (list_store, &iter, 0,
COL_LABEL, curr_value,
- COL_NAME, curr_value, -1);
+ COL_NAME, curr_value,
+ COL_THUMBNAIL, thumbnail,
+ -1);
/* convert the tree store iter for use with the sort model */
gtk_tree_model_sort_convert_child_iter_to_iter (GTK_TREE_MODEL_SORT (store),
&sort_iter, &iter);
@@ -923,6 +927,7 @@
peditor = gconf_peditor_new_tree_view (NULL, key, list,
"conv-to-widget-cb", conv_to_widget_cb,
"conv-from-widget-cb", conv_from_widget_cb,
+ "data", thumbnail,
NULL);
g_signal_connect (peditor, "value-changed", callback, data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]