Re: GTK from assembly
On 3/26/08, Jason Ward [EMAIL PROTECTED] wrote: 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 Note that there is at least one version of Pidgin that installs a private copy of GTK inside it's directory, so you cannot see it from your application, install the full GTK+ bundle: http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.12/gtk+-2.12.9-bundle.zip And place your executable in the path where DLLs are. If your assembler don't let you build executables maybe you should tell it where to find GTK dlls or def files, I cannot tell you how to do that since it's specific to your development enviroment, but you find all the developers files in the package in the link. -- Bye, Gabry ___ 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
On Thu, Mar 27, 2008 at 1:58 PM, Gabriele Greco [EMAIL PROTECTED] wrote: On 3/26/08, Jason Ward [EMAIL PROTECTED] wrote: 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 Note that there is at least one version of Pidgin that installs a private copy of GTK inside it's directory, so you cannot see it from your application, install the full GTK+ bundle: http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.12/gtk+-2.12.9-bundle.zip And place your executable in the path where DLLs are. If your assembler don't let you build executables maybe you should tell it where to find GTK dlls or def files, I cannot tell you how to do that since it's specific to your development enviroment, but you find all the developers files in the package in the link. -- Bye, Gabry Thanks this works perfectly ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Quitting an application
Hi, I am writing a music library manager and I have a small problem when terminating the application. On starting the app, I scan a DB and load the tracks into a treeview. When this is in progress, if the user closes the application, a segfault occurs because gtk_main_quit() has been called and the scanning function tries to access data structures that are no more. How do I synchronize between them ? Any help is appreciated. Sujith ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
GLib questions, GArray and GNode
Hi, I am using glib (version 2.0) for developing some applications. I have some questions about use of Garray and GNode (G-n-ary tree). 1. Is it safe to return an initialized GArray * from a function? e.g. copying garray array1 into garray array2 and then returning pointer to array2. 2. For n-ary tree, is it possible to add strings (static) as data? 3. Is it possible to add a structure as data in n-ary-tree? If yes, how to the functions like g_node_find work? Thanks in advance, Kaustubh Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Quitting an application
I am writing a music library manager and I have a small problem when terminating the application. On starting the app, I scan a DB and load the tracks into a treeview. When this is in progress, if the user closes the application, a segfault occurs because gtk_main_quit() has been called and the scanning function tries to access data structures that are no more. How do I synchronize between them ? Intercept the delete_event or modify the callback where you do the gtk_main_quit() and insert there some thread sync code. You should take care also when you add the rows to your Tree/ListStore if you do that directly from the thread that scans the db. I suppose there is a thread since if there isn't one when you quit the main loop nothing can crash it (except something you call after gtk_main()) :) -- Bye, Gabry ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
How place correctly GtkVPaned separtor?
Hello, I want set position of GtkVPaned, but I don't understand when set position attribut for separator correctly show when widget showing. My new class (write in Vala) : --- public class Valide.SmartVPaned : Gtk.VPaned { private Gtk.HBox hbox; private Gtk.Widget child; private const int DEFAULT_SIZE = 700; [Callback] private void expande (Gtk.Button sender) { if (this.child.visible == true) { this.child.visible = false; sender.image = new Gtk.Image.from_stock (Gtk.STOCK_GO_UP, Gtk.IconSize.SMALL_TOOLBAR); this.position = Window.get_instance ().default_height; } else { this.child.visible = true; sender.image = new Gtk.Image.from_stock (Gtk.STOCK_GO_DOWN, Gtk.IconSize.SMALL_TOOLBAR); this.position = this.DEFAULT_SIZE; } } construct { this.hbox = new Gtk.HBox (false, 0); Gtk.VBox vbox = new Gtk.VBox (false, 0); this.hbox.pack_start (vbox, false, false, 0); Gtk.Button button = new Gtk.Button (); button.relief = Gtk.ReliefStyle.NONE; button.image = new Gtk.Image.from_stock (Gtk.STOCK_GO_DOWN, Gtk.IconSize.SMALL_TOOLBAR); button.clicked += this.expande; vbox.pack_start (button, false, false, 0); this.position = this.DEFAULT_SIZE; } public void show () { base.show (); this.position = this.DEFAULT_SIZE; } public void add2 (Gtk.Widget child) { this.child = child; base.add2 (this.hbox); this.hbox.pack_start (this.child, true, true, 0); this.position = this.DEFAULT_SIZE; } } --- I set the default position at three locations: 1. In widget constructor 2. In show function 3. In add2 function But sepator appears on top. However, after show/hide, the separator displays correctly. Thanks in advance. -- Nicolas Joseph Responsable de la rubrique GTK+ de developpez.com http://nicolasj.developpez.com ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Smooooth scrolling gtk
On Wed, 2008-03-26 at 23:16 +, BJörn Lindqvist wrote: A very long time ago (over half a decade actually!) Søren Sandmann posted a patch[1] that added smooth scrolling to gtk. For some reason that patch was never integrated in mainline, but at least Gentoo patched their gtk with it. I think it is a really nice feature and would be really happy to have it so I've updated it to work with latest gtk. Please try it out, it looks great. Maybe hopefully it can be integrated now? Bug is at http://bugzilla.gnome.org/show_bug.cgi?id=103811. 1 - http://mail.gnome.org/archives/gtk-devel-list/2003-January/msg00083.html +1 ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
hardware mouse acceleration
Hi. Our embedded board can draw mouse pointer. So graphic library don't have to draw it and should only inform about position and image. Is there any posibility to use hardware accelerated mouse in gtk+ with directfb? Cheers. ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: Smooooth scrolling gtk
On Thu, Mar 27, 2008 at 09:38:37AM +0100, Xavier Bestel wrote: A very long time ago (over half a decade actually!) Søren Sandmann posted a patch[1] that added smooth scrolling to gtk. For some reason that patch was never integrated in mainline, but at least Gentoo patched their gtk with it. +1 Aren't there noises afoot for a more generic animated UIs framework coming to GTK? ((A certain amount of Apple fanboyism I suspect ;) )) In any case, if such a framework does appear, surely a smooth scroll will fall out of it as a natural consequence, and doesn't need consideration separately? -- Paul LeoNerd Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/ signature.asc Description: Digital signature ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: Smooooth scrolling gtk
Hi!, On Thu, 2008-03-27 at 13:34 +, Paul LeoNerd Evans wrote: On Thu, Mar 27, 2008 at 09:38:37AM +0100, Xavier Bestel wrote: A very long time ago (over half a decade actually!) Søren Sandmann posted a patch[1] that added smooth scrolling to gtk. For some reason that patch was never integrated in mainline, but at least Gentoo patched their gtk with it. +1 Aren't there noises afoot for a more generic animated UIs framework coming to GTK? ((A certain amount of Apple fanboyism I suspect ;) )) Yes, there's some ongoing discussion in bug #444659 In any case, if such a framework does appear, surely a smooth scroll will fall out of it as a natural consequence, and doesn't need consideration separately? I tried some time ago to make smooth scrolling work through GtkTimeline, but couldn't make GtkTextView behave nicely with it, its exotic usage of adjustments broke cursor handling when scrolling with the keyboard. I still have to test this patch to see whether that still happens, if it's necessary, I got some code towards fixing these. Regarding using the timeline, it probably makes sense, although it was a bit strange to use for animations with indefinite (and constantly changing) duration, maybe it should also allow specifying an infinite duration, so it can be stopped at any time. Regards, Carlos ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Apllication direction bug (#503071)
Hi everybody, I would like to draw your attention to bug #503071 - Untranslated application should NOT be drawn right-to-left (nor use gtk+ stock items translation) on right-to-left based systems. There are two patches attached. One adds a glib i18n wrapper layer api, and the other modifteies gtk+ to use the glib api. The purpose of the glib api is to detect wither an application is translated or not (if the application .mo file exists) and to initialize the gtk/glib libraries accordingly. This is a major bug for rtl users and we hope to see it fixed asap. Thanks, Yair. ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: Smooooth scrolling gtk
2008/3/27 Paul LeoNerd Evans [EMAIL PROTECTED]: On Thu, Mar 27, 2008 at 09:38:37AM +0100, Xavier Bestel wrote: A very long time ago (over half a decade actually!) Søren Sandmann posted a patch[1] that added smooth scrolling to gtk. For some reason that patch was never integrated in mainline, but at least Gentoo patched their gtk with it. +1 Aren't there noises afoot for a more generic animated UIs framework coming to GTK? ((A certain amount of Apple fanboyism I suspect ;) )) Yes, but it is far from complete yet and is really a separate issue. In any case, if such a framework does appear, surely a smooth scroll will fall out of it as a natural consequence, and doesn't need consideration separately? No, someone still has to implement the code to do those animations. I image that when that framework is completed, it will be really simple to rip out this code and replace it with framework-based smooth scrolling. -- mvh Björn ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list