diff options
author | Stefano Karapetsas <[email protected]> | 2014-01-28 20:16:00 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-01-28 20:16:00 +0100 |
commit | a3c69729467538e2821f0a27efbf0a8477d35791 (patch) | |
tree | 2f2add9b2477b400fef28613d6661ec2f6f8a414 /capplets/appearance/appearance-style.c | |
parent | ee511ba9f042c64be34af0f7d8123391605a34c3 (diff) | |
parent | 38f7a4c66ec15897c05eb0f3577aaca4cb1b884d (diff) | |
download | mate-control-center-a3c69729467538e2821f0a27efbf0a8477d35791.tar.bz2 mate-control-center-a3c69729467538e2821f0a27efbf0a8477d35791.tar.xz |
Merge branch 'master' of github.com:mate-desktop/mate-control-center
Diffstat (limited to 'capplets/appearance/appearance-style.c')
-rw-r--r-- | capplets/appearance/appearance-style.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/capplets/appearance/appearance-style.c b/capplets/appearance/appearance-style.c index 5ebd9523..ec9f916a 100644 --- a/capplets/appearance/appearance-style.c +++ b/capplets/appearance/appearance-style.c @@ -982,7 +982,7 @@ prepare_list (AppearanceData *data, GtkWidget *list, ThemeType type, GCallback c /* select in treeview the theme set in gsettings */ GtkTreeModel *treemodel; - treemodel = gtk_tree_view_get_model (list); + treemodel = gtk_tree_view_get_model (GTK_TREE_VIEW (list)); gchar *theme = g_settings_get_string (settings, key); gchar *path = find_string_in_model (treemodel, theme, COL_NAME); if (path) @@ -990,7 +990,7 @@ prepare_list (AppearanceData *data, GtkWidget *list, ThemeType type, GCallback c GtkTreeSelection *selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (list)); GtkTreePath *treepath = gtk_tree_path_new_from_string (path); gtk_tree_selection_select_path (selection, treepath); - gtk_tree_view_scroll_to_cell (list, treepath, NULL, FALSE, 0, 0); + gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (list), treepath, NULL, FALSE, 0, 0); gtk_tree_path_free (treepath); g_free (path); } |