Manually refuse/accept notebook tab drop
Hi, I'm having some problems with the notebook set_tab_detachable from gtk 2.10. If I set book.drag_dest_set(gtk.DEST_DEFAULT_MOTION, [("GTK_NOTEBOOK_TAB", gtk.TARGET_SAME_APP, 0xbadbeef)], gtk.gdk.ACTION_MOVE) on my notebook, I don't recieve any "drag-drop" events. If I set the same group_id on the two notebooks, I do get "drag-drop" events, but the tab is also moved from the first book the seccond. I don't want this to happen autoamtically, as I some times need to refuse the tab drop, or do other things, like but it in a new notebook besides the one dropped upon. Even if I connect to drag-drop and drag-data-received and try to stop them with drag_context.finish, the tab still gets moved. Do anybody know if such manually decicion making is possible with the current API, or I have to write my own detaching code? (which then probably isn't going to look as good, with a drag icon of the tab, as the built in code) -- Best Regards, Med Venlig Hilsen, Thomas ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: GTK from assembly
> It didn't work. Exactly what didn't work? Please consider that what you are doing probably nobody has done before, as far as I know. You never told us exactly why you need to use GTK+ from assembly language, on Windows even. To me that sounds like a somewhat odd idea. You would basically need to create a language binding to GTK+ for your assembler. Depending on the features of the assembler, it might be possible to declare structs in it in a somewhat similar fashion as in C, and thus straightforwardly translate the struct definitions from the C header files to your assembler's syntax, for instance. Or if not, you would need to calculate the struct offsets and define symbolic names for them. Or something like that. And most importantly, I can't really imagine there would be a lot of other people that would be interested in this, and could cooperate with you... I might be wrong, though. > was there something else I am supposed to do after I download this bundle. Exactly what "this bundle"? --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
GTK from assembly
It didn't work. was there something else I am supposed to do after I download this bundle. I do have the run-time installed since I installed Pidgin Thanks guys ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: windows GTK in assembly
On Wed, Mar 26, 2008 at 11:21 AM, Jason Ward <[EMAIL PROTECTED]> wrote: > > Probably this declare the symbol gtk_init to be an external one. > > Something similar in sprit to > >extern void gtk_init(void); > > in C. > > > > This doesn't really help since the assembler I use doesn't use extern in > that manner. > It is a specific assembler which requires that you specify the dll name > and > then the function name. > So what I need is the name of the dll in which gtk_init is located Assuming you're using a build that was built using the standard autoconfiscated method, the dll should be "libgtk-win32-2.0-0.dll". -D ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: windows GTK in assembly
On Wed, Mar 26, 2008 at 05:05:36PM +0200, Jason Ward wrote: > Hi. > I am trying to use GTK in windows with assembly language but I have a > problem. > When I make an API call I need to specify the dll name that the function > comes from. > > so I have > dllname.gtk_init Try Dependency Walker (www.dependencywalker.com). ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: windows GTK in assembly
On Wed, Mar 26, 2008 at 11:21 AM, Jason Ward <[EMAIL PROTECTED]> wrote: > > Probably this declare the symbol gtk_init to be an external one. > > Something similar in sprit to > >extern void gtk_init(void); > > in C. > > > > This doesn't really help since the assembler I use doesn't use extern in > that manner. > It is a specific assembler which requires that you specify the dll name > and > then the function name. > So what I need is the name of the dll in which gtk_init is located Assuming you're using a build that was built using the standard autoconfiscated method, the dll should be "libgtk-win32-2.0-0.dll". -D ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: windows GTK in assembly
> Probably this declare the symbol gtk_init to be an external one. > Something similar in sprit to >extern void gtk_init(void); > in C. > This doesn't really help since the assembler I use doesn't use extern in that manner. It is a specific assembler which requires that you specify the dll name and then the function name. So what I need is the name of the dll in which gtk_init is located ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: windows GTK in assembly
Jason Ward wrote: > Hi. > I am trying to use GTK in windows with assembly language but I have a > problem. Avoid doing that. Why do you need to do it in assembly? -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} *** ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
windows GTK in assembly
Hi. I am trying to use GTK in windows with assembly language but I have a problem. When I make an API call I need to specify the dll name that the function comes from. so I have dllname.gtk_init but I can't find which dll this function name comes from. Thanks in advance Jason ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Which SOAP library?
What SOAP library would you recommend to be used in Gtk / HILDON application? Alternatives i have found: - gsoap, http://www.cs.fsu.edu/~engelen/soap.html - libsoup, http://live.gnome.org/LibSoup - csoap, http://csoap.sourceforge.net/ - libxml? - curl? I'm sort of lost what would be the best way to go forward. -- Arto Karppinen -- [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list