diff options
author | Manish Singh <yosh@gimp.org> | 2002-09-29 21:24:24 +0000 |
---|---|---|
committer | Manish Singh <yosh@src.gnome.org> | 2002-09-29 21:24:24 +0000 |
commit | d8efdf00248d59b4f6a0166ccf47cb63eb696b25 (patch) | |
tree | 7df94339089247bbbee5d9ac2e7c4d6dfd0e0e8d /demos/gtk-demo/appwindow.c | |
parent | 9ab61d69389feb4732dafddc6dd6cc7887073756 (diff) | |
download | gtk+-d8efdf00248d59b4f6a0166ccf47cb63eb696b25.tar.gz |
add deprecation compile flags
Sun Sep 29 14:22:47 2002 Manish Singh <yosh@gimp.org>
* contrib/gdk-pixbuf-xlib/Makefile.am demos/Makefile.am
demos/gtk-demo/Makefile.am: add deprecation compile flags
* demos/testanimation.c demos/testpixbuf-save.c demos/testpixbuf.c
demos/gtk-demo/*.c gdk-pixbuf/gdk-pixbuf-animation.c
gdk-pixbuf/gdk-pixbuf.c: minor cleanups, getting rid of
unnecessary casts
Diffstat (limited to 'demos/gtk-demo/appwindow.c')
-rw-r--r-- | demos/gtk-demo/appwindow.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/demos/gtk-demo/appwindow.c b/demos/gtk-demo/appwindow.c index f6ca60b467..c866a7755b 100644 --- a/demos/gtk-demo/appwindow.c +++ b/demos/gtk-demo/appwindow.c @@ -24,7 +24,7 @@ menuitem_cb (gpointer callback_data, gtk_item_factory_path_from_widget (widget)); /* Close dialog on user response */ - g_signal_connect (G_OBJECT (dialog), + g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL); @@ -73,7 +73,7 @@ toolbar_cb (GtkWidget *button, "You selected a toolbar button"); /* Close dialog on user response */ - g_signal_connect (G_OBJECT (dialog), + g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL); @@ -137,14 +137,14 @@ register_stock_icons (void) icon_set = gtk_icon_set_new_from_pixbuf (transparent); gtk_icon_factory_add (factory, "demo-gtk-logo", icon_set); gtk_icon_set_unref (icon_set); - g_object_unref (G_OBJECT (pixbuf)); - g_object_unref (G_OBJECT (transparent)); + g_object_unref (pixbuf); + g_object_unref (transparent); } else g_warning ("failed to load GTK logo for toolbar"); /* Drop our reference to the factory, GTK will hold a reference. */ - g_object_unref (G_OBJECT (factory)); + g_object_unref (factory); } } @@ -208,7 +208,7 @@ do_appwindow (void) gtk_window_set_title (GTK_WINDOW (window), "Application Window"); /* NULL window variable when window is closed */ - g_signal_connect (G_OBJECT (window), "destroy", + g_signal_connect (window, "destroy", G_CALLBACK (gtk_widget_destroyed), &window); |