aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/shortcut-bar/test-shortcut-bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/shortcut-bar/test-shortcut-bar.c')
-rw-r--r--widgets/shortcut-bar/test-shortcut-bar.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/widgets/shortcut-bar/test-shortcut-bar.c b/widgets/shortcut-bar/test-shortcut-bar.c
index a86ec2a772..2018d614d1 100644
--- a/widgets/shortcut-bar/test-shortcut-bar.c
+++ b/widgets/shortcut-bar/test-shortcut-bar.c
@@ -2,7 +2,7 @@
/*
* Author :
- * Damon Chaplin <damon@gtk.org>
+ * Damon Chaplin <damon@helixcode.com>
*
* Copyright 1999, Helix Code, Inc.
*
@@ -37,6 +37,9 @@ gchar *shortcut_types[] = {
GtkWidget *main_label;
+static void on_main_label_size_allocate (GtkWidget *widget,
+ GtkAllocation *allocation,
+ gpointer data);
static void quit (GtkWidget *window, GdkEvent *event, gpointer data);
static void add_test_groups (EShortcutBar *shortcut_bar);
static void add_test_group (EShortcutBar *shortcut_bar, gint i,
@@ -102,6 +105,9 @@ main (int argc, char *argv[])
main_label = gtk_label_new ("Main Application Window Goes Here");
gtk_paned_pack2 (GTK_PANED (hpaned), main_label, TRUE, TRUE);
gtk_widget_show (main_label);
+ gtk_signal_connect (GTK_OBJECT (main_label), "size_allocate",
+ GTK_SIGNAL_FUNC (on_main_label_size_allocate),
+ NULL);
gtk_widget_pop_visual ();
@@ -120,6 +126,14 @@ main (int argc, char *argv[])
static void
+on_main_label_size_allocate (GtkWidget *widget,
+ GtkAllocation *allocation,
+ gpointer data)
+{
+ g_print ("In on_main_label_size_allocate\n");
+}
+
+static void
quit (GtkWidget *window, GdkEvent *event, gpointer data)
{
gtk_widget_destroy (window);