Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 123313 | Differences between
and this patch

Collapse All | Expand All

(-)skinwin.c (-7 / +12 lines)
Lines 263-268 Link Here
263
    GtkTreeSelection *selection = NULL;
263
    GtkTreeSelection *selection = NULL;
264
    GtkListStore *store;
264
    GtkListStore *store;
265
    GtkTreeIter iter, iter_current_skin;
265
    GtkTreeIter iter, iter_current_skin;
266
    gboolean have_current_skin = FALSE;
266
    GtkTreePath *path;
267
    GtkTreePath *path;
267
268
268
    GdkPixbuf *thumbnail;
269
    GdkPixbuf *thumbnail;
Lines 298-316 Link Here
298
299
299
        if (g_strstr_len(bmp_active_skin->path,
300
        if (g_strstr_len(bmp_active_skin->path,
300
                         strlen(bmp_active_skin->path), name) ) {
301
                         strlen(bmp_active_skin->path), name) ) {
301
	    iter_current_skin = iter;
302
            iter_current_skin = iter;
302
	}
303
            have_current_skin = TRUE;
304
        }
303
305
304
        while (gtk_events_pending())
306
        while (gtk_events_pending())
305
            gtk_main_iteration();
307
            gtk_main_iteration();
306
    }
308
    }
307
309
308
    selection = gtk_tree_view_get_selection(treeview);
310
    if (have_current_skin) {
309
    gtk_tree_selection_select_iter(selection, &iter_current_skin);
311
        selection = gtk_tree_view_get_selection(treeview);
312
        gtk_tree_selection_select_iter(selection, &iter_current_skin);
310
313
311
    path = gtk_tree_model_get_path(GTK_TREE_MODEL(store), &iter_current_skin);
314
        path = gtk_tree_model_get_path(GTK_TREE_MODEL(store),
312
    gtk_tree_view_scroll_to_cell(treeview, path, NULL, TRUE, 0.5, 0.5);
315
		                               &iter_current_skin);
313
    gtk_tree_path_free(path);
316
        gtk_tree_view_scroll_to_cell(treeview, path, NULL, TRUE, 0.5, 0.5);
317
        gtk_tree_path_free(path);
318
    }
314
319
315
    gtk_widget_set_sensitive(GTK_WIDGET(treeview), TRUE);
320
    gtk_widget_set_sensitive(GTK_WIDGET(treeview), TRUE);
316
}
321
}

Return to bug 123313