From 7bbde00c9b6414759a4f165f13429ec30a5e23e5 Mon Sep 17 00:00:00 2001 From: Brandon Lewis Date: Thu, 22 Jul 2010 11:00:15 +0200 Subject: [PATCH] add toolbar; connect to action signals instead of menu items directly --- tests/examples/ges-ui.c | 8 ++-- tests/examples/ges-ui.glade | 80 ++++++++++++++++++++++++++++++------- 2 files changed, 69 insertions(+), 19 deletions(-) diff --git a/tests/examples/ges-ui.c b/tests/examples/ges-ui.c index e4bc56f8ec..36a1568021 100644 --- a/tests/examples/ges-ui.c +++ b/tests/examples/ges-ui.c @@ -54,9 +54,9 @@ void window_destroy_cb (GtkObject * window, App * app); void quit_item_activate_cb (GtkMenuItem * item, App * app); -void delete_item_activate_cb (GtkMenuItem * item, App * app); +void delete_activate_cb (GtkMenuItem * item, App * app); -void add_file_item_activate_cb (GtkMenuItem * item, App * app); +void add_file_activate_cb (GtkMenuItem * item, App * app); void app_selection_changed_cb (GtkTreeSelection * selection, App * app); @@ -90,7 +90,7 @@ quit_item_activate_cb (GtkMenuItem * item, App * app) } void -delete_item_activate_cb (GtkMenuItem * item, App * app) +delete_activate_cb (GtkMenuItem * item, App * app) { /* get a gslist of selected track objects */ GList *objects = NULL; @@ -100,7 +100,7 @@ delete_item_activate_cb (GtkMenuItem * item, App * app) } void -add_file_item_activate_cb (GtkMenuItem * item, App * app) +add_file_activate_cb (GtkMenuItem * item, App * app) { GST_DEBUG ("add file signal handler"); diff --git a/tests/examples/ges-ui.glade b/tests/examples/ges-ui.glade index 6d23218d6e..2a04b05053 100644 --- a/tests/examples/ges-ui.glade +++ b/tests/examples/ges-ui.glade @@ -98,11 +98,11 @@ - gtk-delete True - True + True + delete + Delete True - @@ -126,11 +126,10 @@ True - Add file... True - image1 - False - + True + add_file + True @@ -163,6 +162,51 @@ 0 + + + True + + + True + add_file + True + toolbutton1 + True + + + False + True + + + + + True + delete + True + Delete + True + + + + False + True + + + + + True + + + False + True + + + + + False + 1 + + True @@ -321,23 +365,29 @@ - 1 + 2 - - True - 9 - gtk-add - 1 - - + + + Delete + gtk-delete + True + + + + Add File + gtk-add + True + +