Re: building a modular interface
Hi, Le 27/03/2012 10:03, Lachlan a écrit : libgdl is EXACTLY what i wanted to do. after looking at ajunta it's perfect. looks like gnome team is handling it now as well http://ftp.gnome.org/pub/GNOME/sources/gdl/3.4/ Yes, GDL is still used by Anjuta and is maintained by Anjuta's team. It has been ported to GTK+3. A forked version is used in Inkscape too. There are some work done to merge both versions. I can't see it a gtk3 version of python-gdl for debian so i think i'm out of my league on this. I think there are some introspection annotations, so it should be possible get python bindings quite easily. Regards, Sébastien ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
learning gtk+ well: Which book to buy?
Hi. I want to have a thorough and well-formed understanding of how to use gtk+, which I'm not quite getting from the API. What would be the best book I can buy right now? The most up-to-date book I see is Foundations of GTK+ Development (2007) but not having a lot of money to experiment with, I was hoping to get your recommendations before buying anything. -- frigidcode.com indicium.us ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: learning gtk+ well: Which book to buy?
Hello Howard, I am afraid to disappoint you, but in this case books will not help much. GTK+ was changed significantly comparing to GTK+ from the 2007. The best way to start learning is to read a documentation, play with demos and tutorials, examine other non-complex projects. If you are able to find a copy of the book, you may read it fast and skip many sentences just to get a brief idea :) Best regards, Vlad 27 марта 2012 г. 20:45 пользователь Christopher Howard christopher.how...@frigidcode.com написал: Hi. I want to have a thorough and well-formed understanding of how to use gtk+, which I'm not quite getting from the API. What would be the best book I can buy right now? The most up-to-date book I see is Foundations of GTK+ Development (2007) but not having a lot of money to experiment with, I was hoping to get your recommendations before buying anything. -- frigidcode.com indicium.us ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: learning gtk+ well: Which book to buy?
Hi, I have to strongly agree with Vlad here, I think the quality of information that you can find in print on GTK+ pales in comparison to what you have readily available on the internet. Of course finding the right material to read might be staggering at first, just toy with the apis a little, doing some experimentation will quickly set you on the right track. I strongly recommend that you start with getting a grip on the GObject type system, read the material that can be found here: http://developer.gnome.org/gobject/2.32/ GTK+ is basically just GObject based widgetry which deals with the GDK backend for windowing system interaction... once you get a feel for the main virtual methods involved on the GtkWidget class then you should have a pretty good understanding of how GTK+ works (yes, easier said than done... I just doubt that any book on the shelf is going to get you there any faster than just experimenting and doing it yourself). And as Vlad also mentioned, do take a look at some of the more simple and/or more maintained projects source code, the source code of Devhelp is small and readable (of course most of the work is done by the browser embedding, just take a look at how it creates the preferences dialog using GtkBuilder and creates a widget class to encapsulate the preferences module). Cheers, -Tristan On Wed, Mar 28, 2012 at 3:54 AM, Vlad Volodin vest...@gmail.com wrote: Hello Howard, I am afraid to disappoint you, but in this case books will not help much. GTK+ was changed significantly comparing to GTK+ from the 2007. The best way to start learning is to read a documentation, play with demos and tutorials, examine other non-complex projects. If you are able to find a copy of the book, you may read it fast and skip many sentences just to get a brief idea :) Best regards, Vlad 27 марта 2012 г. 20:45 пользователь Christopher Howard christopher.how...@frigidcode.com написал: Hi. I want to have a thorough and well-formed understanding of how to use gtk+, which I'm not quite getting from the API. What would be the best book I can buy right now? The most up-to-date book I see is Foundations of GTK+ Development (2007) but not having a lot of money to experiment with, I was hoping to get your recommendations before buying anything. -- frigidcode.com indicium.us ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: learning gtk+ well: Which book to buy?
Hi again, Oh! I remember more. Sometimes Vala implementation helped me in the past, when I learned how to create GObject classes, interfaces, public, private section. Vala looks like C# and might help you to understand how to make correct GObject classes :) Best regards, Vlad 27 марта 2012 г. 21:26 пользователь Tristan Van Berkom t...@gnome.orgнаписал: Hi, I have to strongly agree with Vlad here, I think the quality of information that you can find in print on GTK+ pales in comparison to what you have readily available on the internet. Of course finding the right material to read might be staggering at first, just toy with the apis a little, doing some experimentation will quickly set you on the right track. I strongly recommend that you start with getting a grip on the GObject type system, read the material that can be found here: http://developer.gnome.org/gobject/2.32/ GTK+ is basically just GObject based widgetry which deals with the GDK backend for windowing system interaction... once you get a feel for the main virtual methods involved on the GtkWidget class then you should have a pretty good understanding of how GTK+ works (yes, easier said than done... I just doubt that any book on the shelf is going to get you there any faster than just experimenting and doing it yourself). And as Vlad also mentioned, do take a look at some of the more simple and/or more maintained projects source code, the source code of Devhelp is small and readable (of course most of the work is done by the browser embedding, just take a look at how it creates the preferences dialog using GtkBuilder and creates a widget class to encapsulate the preferences module). Cheers, -Tristan On Wed, Mar 28, 2012 at 3:54 AM, Vlad Volodin vest...@gmail.com wrote: Hello Howard, I am afraid to disappoint you, but in this case books will not help much. GTK+ was changed significantly comparing to GTK+ from the 2007. The best way to start learning is to read a documentation, play with demos and tutorials, examine other non-complex projects. If you are able to find a copy of the book, you may read it fast and skip many sentences just to get a brief idea :) Best regards, Vlad 27 марта 2012 г. 20:45 пользователь Christopher Howard christopher.how...@frigidcode.com написал: Hi. I want to have a thorough and well-formed understanding of how to use gtk+, which I'm not quite getting from the API. What would be the best book I can buy right now? The most up-to-date book I see is Foundations of GTK+ Development (2007) but not having a lot of money to experiment with, I was hoping to get your recommendations before buying anything. -- frigidcode.com indicium.us ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: learning gtk+ well: Which book to buy?
I agree about Vala, here's my personal experience, I'm a programmer, mostly C++ but not a great Linux lover :-P I heard about Vala, I dowloaded the Vala IDE binaries, copy pasted the TreeView with TreeStore tutorial : https://live.gnome.org/Vala/GTKSample That was just incredible to build and run a Gtk+ program in a few minutes under another system than Linux. Then I'm learning Gtk+ since January, under Linux this time and make big progresses with Vala. Great language and great tutorials, I strongly recommend these. :-) On 27/03/2012 21:31, Vlad Volodin wrote: Hi again, Oh! I remember more. Sometimes Vala implementation helped me in the past, when I learned how to create GObject classes, interfaces, public, private section. Vala looks like C# and might help you to understand how to make correct GObject classes :) Best regards, Vlad 27 марта 2012 г. 21:26 пользователь Tristan Van Berkomt...@gnome.orgнаписал: Hi, I have to strongly agree with Vlad here, I think the quality of information that you can find in print on GTK+ pales in comparison to what you have readily available on the internet. Of course finding the right material to read might be staggering at first, just toy with the apis a little, doing some experimentation will quickly set you on the right track. I strongly recommend that you start with getting a grip on the GObject type system, read the material that can be found here: http://developer.gnome.org/gobject/2.32/ GTK+ is basically just GObject based widgetry which deals with the GDK backend for windowing system interaction... once you get a feel for the main virtual methods involved on the GtkWidget class then you should have a pretty good understanding of how GTK+ works (yes, easier said than done... I just doubt that any book on the shelf is going to get you there any faster than just experimenting and doing it yourself). And as Vlad also mentioned, do take a look at some of the more simple and/or more maintained projects source code, the source code of Devhelp is small and readable (of course most of the work is done by the browser embedding, just take a look at how it creates the preferences dialog using GtkBuilder and creates a widget class to encapsulate the preferences module). Cheers, -Tristan On Wed, Mar 28, 2012 at 3:54 AM, Vlad Volodinvest...@gmail.com wrote: Hello Howard, I am afraid to disappoint you, but in this case books will not help much. GTK+ was changed significantly comparing to GTK+ from the 2007. The best way to start learning is to read a documentation, play with demos and tutorials, examine other non-complex projects. If you are able to find a copy of the book, you may read it fast and skip many sentences just to get a brief idea :) Best regards, Vlad 27 марта 2012 г. 20:45 пользователь Christopher Howard christopher.how...@frigidcode.com написал: Hi. I want to have a thorough and well-formed understanding of how to use gtk+, which I'm not quite getting from the API. What would be the best book I can buy right now? The most up-to-date book I see is Foundations of GTK+ Development (2007) but not having a lot of money to experiment with, I was hoping to get your recommendations before buying anything. -- frigidcode.com indicium.us ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- Axel FILMORE ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: learning gtk+ well: Which book to buy?
And I forgot that trick, if you use Google, you can search files of a particular type with filetype For example you can search GtkTreeView in C source code with this : GtkTreeView filetype:c Or in Vala with this : Gtk.TreeView filetype:vala Then you have a huge book with tons of sample code. :-) On 27/03/2012 21:31, Vlad Volodin wrote: Hi again, Oh! I remember more. Sometimes Vala implementation helped me in the past, when I learned how to create GObject classes, interfaces, public, private section. Vala looks like C# and might help you to understand how to make correct GObject classes :) Best regards, Vlad 27 марта 2012 г. 21:26 пользователь Tristan Van Berkomt...@gnome.orgнаписал: Hi, I have to strongly agree with Vlad here, I think the quality of information that you can find in print on GTK+ pales in comparison to what you have readily available on the internet. Of course finding the right material to read might be staggering at first, just toy with the apis a little, doing some experimentation will quickly set you on the right track. I strongly recommend that you start with getting a grip on the GObject type system, read the material that can be found here: http://developer.gnome.org/gobject/2.32/ GTK+ is basically just GObject based widgetry which deals with the GDK backend for windowing system interaction... once you get a feel for the main virtual methods involved on the GtkWidget class then you should have a pretty good understanding of how GTK+ works (yes, easier said than done... I just doubt that any book on the shelf is going to get you there any faster than just experimenting and doing it yourself). And as Vlad also mentioned, do take a look at some of the more simple and/or more maintained projects source code, the source code of Devhelp is small and readable (of course most of the work is done by the browser embedding, just take a look at how it creates the preferences dialog using GtkBuilder and creates a widget class to encapsulate the preferences module). Cheers, -Tristan On Wed, Mar 28, 2012 at 3:54 AM, Vlad Volodinvest...@gmail.com wrote: Hello Howard, I am afraid to disappoint you, but in this case books will not help much. GTK+ was changed significantly comparing to GTK+ from the 2007. The best way to start learning is to read a documentation, play with demos and tutorials, examine other non-complex projects. If you are able to find a copy of the book, you may read it fast and skip many sentences just to get a brief idea :) Best regards, Vlad 27 марта 2012 г. 20:45 пользователь Christopher Howard christopher.how...@frigidcode.com написал: Hi. I want to have a thorough and well-formed understanding of how to use gtk+, which I'm not quite getting from the API. What would be the best book I can buy right now? The most up-to-date book I see is Foundations of GTK+ Development (2007) but not having a lot of money to experiment with, I was hoping to get your recommendations before buying anything. -- frigidcode.com indicium.us ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- Axel FILMORE ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Timely Display of Dialog Contents
I have an issue where the contents of a dialog (a label pic) is not always displayed in a timely manner (or at all). In the code below the dialog outline (the size of the dialog changes from pic to pic) always displays properly as it should. But the contents of the label and the pic in the gtk_image_new_from_pixbuf() call sometimes display appropriately and sometimes don't. (When the dialog content doesn't display properly the dialog outline displays but the contents are blank.) The code below is within a large loop. There's a lot of other stuff going on. The contents of the dialog (label pic) changes with each execution of the code. If I slow down execution of the entire code with sleep() I get the same results as described above. The code below is executed with a g_idle_add(). I've tried adding: while (gtk_events_pending ()) gtk_main_iteration (); after the gtk_widget_show_all() to no avail. I appreciate any insight. batterpicwin = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW (batterpicwin), Batter Pic); gtk_window_set_default_size (GTK_WINDOW (batterpicwin), 200, 130); gtk_window_move (GTK_WINDOW (batterpicwin), batpicwinlocX, batpicwinlocY); gtk_signal_connect (GTK_OBJECT (batterpicwin), delete_event, GTK_SIGNAL_FUNC (donot_delete_event), 0); strcpy (work[0], Batting - ); strcat (work[0], savebattername[0]); vbox2 = gtk_vbox_new (FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER (vbox2), 8); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (batterpicwin)-vbox), vbox2, TRUE, TRUE, 0); label = g_object_new (GTK_TYPE_LABEL, label, work[0], NULL); gtk_box_pack_start (GTK_BOX (vbox2), label, TRUE, TRUE, 0); vbox2 = gtk_vbox_new (FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER (vbox2), 8); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (batterpicwin)-vbox), vbox2, TRUE, TRUE, 0); picbox = gtk_event_box_new (); gtk_container_add (GTK_CONTAINER (picbox), gtk_image_new_from_pixbuf (pic)); gtk_box_pack_start (GTK_BOX (vbox2), picbox, TRUE, TRUE, 0); gtk_widget_show_all (batterpicwin); -- Marshall Lake -- ml...@mlake.net -- http://www.mlake.net ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list