Re: [pygtk] selection_add_handler() implemented?
On Fri, 9 Mar 2001, Brian Keck wrote: > On Fri, 09 Mar 2001 08:36:57 +0800, James Henstridge wrote: > >On Thu, 8 Mar 2001, Brian Keck wrote: > >> Is selection_add_handler() implemented? > >> I can't see it in the source. > >What is selection_add_handler() supposed to do? I searched through the > >gtk and gdk sources/headers, and there is no mention of a function by that > >name. > > I saw it in woody's libgtk-doc 1.0.6-4, in ^^^ GTK+ 1.0.6 is from the obsolete 1.0 branch. Selections are one of the things that changed in GTK+ 1.2. There should be an updated version of the tutorial distributed with gtk+ 1.2.x, and available on www.gtk.org. In 1.2, you use the widget.selection_add_target() method to set up the selection types you will handle. Then connect to the selection_get signal to provide the selection data (with the selection_data.set method). James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
Re: [pygtk] selection_add_handler() implemented?
On Fri, 09 Mar 2001 08:36:57 +0800, James Henstridge wrote: >On Thu, 8 Mar 2001, Brian Keck wrote: >> Is selection_add_handler() implemented? >> I can't see it in the source. >What is selection_add_handler() supposed to do? I searched through the >gtk and gdk sources/headers, and there is no mention of a function by that >name. I saw it in woody's libgtk-doc 1.0.6-4, in /usr/doc/libgtk-doc/tutorial-html/gtk_tut-20.html. To save you looking, it says ... 20.3 Supplying the selection Supplying the selection is a bit more complicated. You must register handlers that will be called when your selection is requested. For each selection/target pair you will handle, you make a call to: void gtk_selection_add_handler( GtkWidget*widget, GdkAtom selection, GdkAtom target, GtkSelectionFunction function, GtkRemoveFunction remove_func, gpointer data ); I guess this is obsolete? I see the selection stuff in gtkselection.h seems to be in pygtk ... Thanks, Brian K ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
Re: [pygtk] selection_add_handler() implemented?
On Thu, 8 Mar 2001, Brian Keck wrote: > > Hello, > > Is selection_add_handler() implemented? > I can't see it in the source. What is selection_add_handler() supposed to do? I searched through the gtk and gdk sources/headers, and there is no mention of a function by that name. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk