summaryrefslogtreecommitdiff
path: root/examples/pixmap
diff options
context:
space:
mode:
authorSven Neumann <sven@gimp.org>2008-08-11 18:36:07 +0000
committerSven Neumann <neo@src.gnome.org>2008-08-11 18:36:07 +0000
commit82f6ccd79cc9c6c1d032a620649c1a0b500943eb (patch)
treea7fe470d84196b53139ee2d9d8f4bef6c352edcc /examples/pixmap
parente3e126ae9eb9f860f2b99157d18cb3d6428add78 (diff)
downloadgdk-pixbuf-82f6ccd79cc9c6c1d032a620649c1a0b500943eb.tar.gz
updated the (quite outdated) examples to use canonical signal names as
2008-08-11 Sven Neumann <sven@gimp.org> * examples/*: updated the (quite outdated) examples to use canonical signal names as well. Removed some unneeded casts and trailing whitespace while I was on it... svn path=/trunk/; revision=21071
Diffstat (limited to 'examples/pixmap')
-rw-r--r--examples/pixmap/pixmap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/pixmap/pixmap.c b/examples/pixmap/pixmap.c
index 6c3e95934..7bb385021 100644
--- a/examples/pixmap/pixmap.c
+++ b/examples/pixmap/pixmap.c
@@ -53,12 +53,12 @@ int main( int argc,
GdkPixmap *pixmap;
GdkBitmap *mask;
GtkStyle *style;
-
+
/* create the main window, and attach delete_event signal to terminating
the application */
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- g_signal_connect (G_OBJECT (window), "delete_event",
+ g_signal_connect (window, "delete-event",
G_CALLBACK (close_application), NULL);
gtk_container_set_border_width (GTK_CONTAINER (window), 10);
gtk_widget_show (window);
@@ -79,11 +79,11 @@ int main( int argc,
gtk_container_add (GTK_CONTAINER (window), button);
gtk_widget_show (button);
- g_signal_connect (G_OBJECT (button), "clicked",
+ g_signal_connect (button, "clicked",
G_CALLBACK (button_clicked), NULL);
/* show the window */
gtk_main ();
-
+
return 0;
}