diff options
author | Stefano Karapetsas <[email protected]> | 2014-01-28 17:07:40 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-01-28 17:07:40 +0100 |
commit | 44c15cac8d362deb7a4febd16d9dc2288f4f54e7 (patch) | |
tree | 599aedd002c465d4b0f4f1601332e999c5bbdb59 /capplets/appearance/appearance-style.c | |
parent | 2df56b620bc0b98adad27688985be31d5c830242 (diff) | |
download | mate-control-center-44c15cac8d362deb7a4febd16d9dc2288f4f54e7.tar.bz2 mate-control-center-44c15cac8d362deb7a4febd16d9dc2288f4f54e7.tar.xz |
Fix some gcc warnings
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); } |