From bdc7dc7cd78ea4924902af6381cb4e23876a8d48 Mon Sep 17 00:00:00 2001 From: Brandon Lewis Date: Wed, 21 Jul 2010 13:53:01 +0200 Subject: [PATCH] store a pointer to the list selection --- tests/examples/ges-ui.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/examples/ges-ui.c b/tests/examples/ges-ui.c index 70bb134..abd3b76 100644 --- a/tests/examples/ges-ui.c +++ b/tests/examples/ges-ui.c @@ -29,6 +29,7 @@ typedef struct App GESTimelineLayer *layer; GtkWidget *main_window; GtkListStore *model; + GtkTreeSelection *selection; } App; App *app_new (void); @@ -205,6 +206,11 @@ create_ui (App * app) goto fail; } + app->selection = gtk_tree_view_get_selection (timeline); + + if (!app->selection) + goto fail; + gtk_tree_view_set_model (timeline, GTK_TREE_MODEL (app->model)); gtk_builder_connect_signals (builder, app); -- 2.7.4