diff options
author | BST 2002 Tony Gale <gale@gtk.org> | 2002-08-25 11:28:42 +0000 |
---|---|---|
committer | Tony Gale <gale@src.gnome.org> | 2002-08-25 11:28:42 +0000 |
commit | 992ea8e1d7a4673831b146e803578dda3a36d44c (patch) | |
tree | 869788fa12a1dc9bb945ef3611c94f2b4f3f4a84 /examples/selection/gettargets.c | |
parent | 2f31e7ed12099c8a6c54255867e9fc9dbb88dd89 (diff) | |
download | gdk-pixbuf-992ea8e1d7a4673831b146e803578dda3a36d44c.tar.gz |
update packaging script for current tutorial
Sun Aug 25 11:58:27 BST 2002 Tony Gale <gale@gtk.org>
* docs/tutorial/package-db-tutorial.sh:
update packaging script for current tutorial
* docs/tutorial/images/*.eps: New Files
EPS versions of the tutorial images
Diffstat (limited to 'examples/selection/gettargets.c')
-rw-r--r-- | examples/selection/gettargets.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/selection/gettargets.c b/examples/selection/gettargets.c index 7c0cc276f..bfc44a0ee 100644 --- a/examples/selection/gettargets.c +++ b/examples/selection/gettargets.c @@ -11,13 +11,14 @@ void get_targets( GtkWidget *widget, gpointer data ) { static GdkAtom targets_atom = GDK_NONE; + GtkWidget *window = (GtkWidget *)data; /* Get the atom corresponding to the string "TARGETS" */ if (targets_atom == GDK_NONE) targets_atom = gdk_atom_intern ("TARGETS", FALSE); /* And request the "TARGETS" target for the primary selection */ - gtk_selection_convert (widget, GDK_SELECTION_PRIMARY, targets_atom, + gtk_selection_convert (window, GDK_SELECTION_PRIMARY, targets_atom, GDK_CURRENT_TIME); } @@ -82,9 +83,9 @@ int main( int argc, button = gtk_button_new_with_label ("Get Targets"); gtk_container_add (GTK_CONTAINER (window), button); - g_signal_connect (G_OBJECT(button), "clicked", - G_CALLBACK (get_targets), NULL); - g_signal_connect (G_OBJECT(button), "selection_received", + g_signal_connect (G_OBJECT (button), "clicked", + G_CALLBACK (get_targets), (gpointer) window); + g_signal_connect (G_OBJECT (window), "selection_received", G_CALLBACK (selection_received), NULL); gtk_widget_show (button); |