Mercurial > pidgin.yaz
changeset 17436:ce03892c4755
Using GTK+-2.8 functions - inadmissible.
author | Gabriel Schulhof <nix@go-nix.ca> |
---|---|
date | Tue, 29 May 2007 22:21:02 +0000 |
parents | 3223413a9c80 |
children | e3fd996b7780 |
files | pidgin/gtkprefs.c |
diffstat | 1 files changed, 4 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkprefs.c Tue May 29 20:42:21 2007 +0000 +++ b/pidgin/gtkprefs.c Tue May 29 22:21:02 2007 +0000 @@ -525,17 +525,14 @@ if ((theme_rowref = theme_refresh_theme_list()) != NULL) { GtkTreeIter itr; - GtkTreeModel *tm; GtkTreePath *tp = NULL; GtkTreeSelection *sel = NULL; if ((sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(smiley_theme_tree_view))) != NULL) { - if ((tm = gtk_tree_row_reference_get_model(theme_rowref)) != NULL) { - if ((tp = gtk_tree_row_reference_get_path(theme_rowref)) != NULL) { - if (gtk_tree_model_get_iter(tm, &itr, tp)) - gtk_tree_selection_select_iter(sel, &itr); - gtk_tree_path_free(tp); - } + if ((tp = gtk_tree_row_reference_get_path(theme_rowref)) != NULL) { + if (gtk_tree_model_get_iter(GTK_TREE_MODEL(smiley_theme_store), &itr, tp)) + gtk_tree_selection_select_iter(sel, &itr); + gtk_tree_path_free(tp); } } gtk_tree_row_reference_free(theme_rowref);