diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-11-02 16:25:03 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-11-02 16:25:03 +0800 |
commit | 9c73777f2268b5bf2622f893e2a3ba7d0f720572 (patch) | |
tree | f81b79f19b87f84b4429d329b3fc0f9ff7946060 /widgets/misc/test-title-bar.c | |
parent | 236c15d106b4e740d4e3996e0649334ca8e13876 (diff) | |
download | gsoc2013-evolution-9c73777f2268b5bf2622f893e2a3ba7d0f720572.tar.gz gsoc2013-evolution-9c73777f2268b5bf2622f893e2a3ba7d0f720572.tar.zst gsoc2013-evolution-9c73777f2268b5bf2622f893e2a3ba7d0f720572.zip |
First big sync of my GNOME 2 porting work (incomplete, and still
pretty broken).
Weeeeee!
svn path=/trunk/; revision=18503
Diffstat (limited to 'widgets/misc/test-title-bar.c')
-rw-r--r-- | widgets/misc/test-title-bar.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/widgets/misc/test-title-bar.c b/widgets/misc/test-title-bar.c index a3a5b359e3..d8bf6a08f2 100644 --- a/widgets/misc/test-title-bar.c +++ b/widgets/misc/test-title-bar.c @@ -26,10 +26,11 @@ #include <gtk/gtkbox.h> #include <gtk/gtkmain.h> -#include <gtk/gtktext.h> #include <gtk/gtkvbox.h> +#include <gtk/gtklabel.h> + #include <libgnomeui/gnome-app.h> -#include <libgnomeui/gnome-init.h> +#include <libgnomeui/gnome-ui-init.h> #include "e-title-bar.h" static void @@ -45,7 +46,7 @@ main (int argc, char **argv) { GtkWidget *app; GtkWidget *title_bar; - GtkWidget *text; + GtkWidget *label; GtkWidget *vbox; gnome_init ("test-title-bar", "0.0", argc, argv); @@ -59,12 +60,12 @@ main (int argc, char **argv) title_bar = e_title_bar_new ("This is a very annoyingly long title bar"); gtk_widget_show (title_bar); - text = gtk_text_new (NULL, NULL); - gtk_widget_show (text); + label = gtk_label_new ("boo"); + gtk_widget_show (label); vbox = gtk_vbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), title_bar, FALSE, TRUE, 0); - gtk_box_pack_start (GTK_BOX (vbox), text, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, TRUE, 0); gtk_widget_show (vbox); gnome_app_set_contents (GNOME_APP (app), vbox); |