Re: Close GTK Main window

2009-09-24 Thread Ardhan Madras
Hi, GTK+ application should use at least one main loop, once you have called gtk_main() then the loop is running, your main window keep showing because this loop, you can exit from the main loop (or your main window) anytime by calling gtk_main_quit() or use standard function exit() to just

Re: Close GTK Main window

2009-09-24 Thread Pavel A. da Mek
Is it possible to close a GTK main window through the code? gtk_widget_destroy (mainWindow); The application can continue running after the window is destroyed, if you simply omit the usual g_signal_connect (G_OBJECT (mainWindow), destroy, G_CALLBACK (gtk_main_quit), NULL); P.A.

Treeview Row Count

2009-09-24 Thread dhk
Is there a function to give the number of rows in a treeview? Thanks, dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Treeview Row Count

2009-09-24 Thread Tadej Borovšak
Hello. Is there a function to give the number of rows in a treeview? You probably want to know how many lines are in the GtkTreeModel that serves as data source for GtkTreeView. There is no simple function that would serve you this number, so you'll have to take one of the two available paths:

Re: Treeview Row Count

2009-09-24 Thread Kristian Rietveld
Also note that for *lists* (so no parent nodes, no children) a call like gtk_tree_model_iter_n_children (model, NULL) will suffice. -kris. On Thu, Sep 24, 2009 at 1:32 PM, Tadej Borovšak tadeb...@gmail.com wrote: Hello. Is there a function to give the number of rows in a treeview? You

Re: Treeview Row Count

2009-09-24 Thread dhk
Kristian Rietveld wrote: Also note that for *lists* (so no parent nodes, no children) a call like gtk_tree_model_iter_n_children (model, NULL) will suffice. -kris. On Thu, Sep 24, 2009 at 1:32 PM, Tadej Borovšak tadeb...@gmail.com wrote: Hello. Is there a function to give the number

Re: main loop asynchronous queues

2009-09-24 Thread Thomas Stover
Chris Vine wrote: In your code you didn't create a GMainContext object for each of your threads, which is the key point. Each thread in which you want a main loop should call g_main_context_new() which will create a GMainContext object for the calling thread, then use that to create a GMainLoop

How to suppress text on GtkCellRendererToggle

2009-09-24 Thread rpoe
I'm trying to make a column in a GtkTreeView which shows only a checkbox, tied to a column in the underlying GtkTreeModel which is a gboolean. I have defined the renderer to be a GtkCellRendererToggle. The problem I'm having is with display. I'd like it only to show the checkbox. I can write a

Re: How to suppress text on GtkCellRendererToggle

2009-09-24 Thread Tadej Borovšak
Hi. The problem I'm having is with display. I'd like it only to show the checkbox. I can write a cell data display function to read the value from the model and set the checkbox appropriately. That works fine. But if I make the underlying value a G_TYPE_INTEGER then the column displays 1's

Re: How to suppress text on GtkCellRendererToggle

2009-09-24 Thread Tadej Borovšak
Hi. I'm returning this back to the mailing list. Hmm. OK, going through gtk_tree_view_insert_column_with_attributes works for me, too. So there's something about the sequence of calls generating this other column that creates this behavior. This is part of a large GUI project so it goes

Re: main loop asynchronous queues

2009-09-24 Thread Chris Vine
On Thu, 24 Sep 2009 14:32:30 -0500 Thomas Stover tho...@wsinnovations.com wrote: [snip] For anyone in the future searching around for more info on this topic, here is a variation of the gtk hello world program I was doing some experiments with. My main question at this point to anyone who

Re: libeggdbus v. libdbus-glib

2009-09-24 Thread Denys Vlasenko
On Thursday 17 September 2009 15:58, David Zeuthen wrote: On Thu, 2009-09-17 at 12:18 +0200, Denys Vlasenko wrote: You wrote: * From: David Zeuthen david fubar dk * To: gtk-devel-list gnome org * Subject: EggDBus * Date: Sun, 21 Dec 2008 21:48:25 -0500 Hey, For the past

Re: libeggdbus v. libdbus-glib

2009-09-24 Thread Brian J. Tarricone
On 09/22/2009 02:59 PM, Denys Vlasenko wrote: I looked into the code just now. I wanted to check, maybe I'm really horribly wrong? Maybe it's a beautifully tight, slim and efficient code after all? This is an example I found in about 2 minutes: [...] These DBUS_TYPE_BYTE_AS_STRING are

gobject-performance

2009-09-24 Thread Benjamin Otte
Hi, I'd like to move the work done on the gobject-performance branch to master now that 2.22.0 is out. It contains tremendous improvements for threaded applications and even noticably speeds up non-threaded performance. The patches on the branch have been developed, reviewed and tested by at

Re: gobject-performance

2009-09-24 Thread A. Walton
On Thu, Sep 24, 2009 at 9:37 AM, Benjamin Otte o...@gnome.org wrote: Hi, I'd like to move the work done on the gobject-performance branch to master now that 2.22.0 is out. It contains tremendous improvements for threaded applications and even noticably speeds up non-threaded performance. The

Re: undo in textview

2009-09-24 Thread Yann Leboulanger
Emmanuel Rodriguez wrote: On Wed, Sep 23, 2009 at 10:39 PM, Yann Leboulanger aste...@lagaule.org mailto:aste...@lagaule.org wrote: Hi, It seems GTK have no feature to undo in a gtkTextview / gtTextBuffer. Am I wrong? It doesn't but gtksourceview does. You can download

Re: Close the GTK window through Code

2009-09-24 Thread Alexandre Franke
On Thu, Sep 24, 2009 at 7:31 AM, Sundaram ds.sun...@gmail.com wrote: Dear All, Hi,        Is it possible to close a GTK main window through the code? I want to programmatically  close the GTK main window when certain condition is satisfied. How do i do this? Please give me a sample code for

Re: Close the GTK window through Code

2009-09-24 Thread Holger Berndt
On Do, 24.09.2009 11:01, Sundaram wrote: Is it possible to close a GTK main window through the code? gtk_widget_hide() and gtk_widget_destroy() come to my mind. Holger ___ gtk-list mailing list gtk-list@gnome.org

Re: undo in textview

2009-09-24 Thread Mike Massonnet
[Replying again but on-list this time] 2009/9/23 Emmanuel Rodriguez emmanuel.rodrig...@gmail.com: On Wed, Sep 23, 2009 at 10:39 PM, Yann Leboulanger aste...@lagaule.org wrote: Hi, It seems GTK have no feature to undo in a gtkTextview / gtTextBuffer. Am I wrong? It doesn't but

Embedding Netscape Plugin GtkWindow

2009-09-24 Thread Andy Bell
Hi All, I am pretty new to Gtk and have started working on a project to embed the Flash Netscape Plugin into a GtkWindow. Using XEmbed all works fine and I am able to display a SWF in a GtkWindow. The problem comes when I want to embed the movie within the GtkWindow. If I specify to embed the

Re: undo in textview

2009-09-24 Thread Yann Leboulanger
Mike Massonnet wrote: [Replying again but on-list this time] 2009/9/23 Emmanuel Rodriguez emmanuel.rodrig...@gmail.com: On Wed, Sep 23, 2009 at 10:39 PM, Yann Leboulanger aste...@lagaule.org wrote: Hi, It seems GTK have no feature to undo in a gtkTextview / gtTextBuffer. Am I wrong? It

Re: undo in textview

2009-09-24 Thread Javier Jardón
2009/9/24 Holger Berndt bern...@gmx.de: Anyways, given that undo is a very important user interaction component, and it's nasty to have library dependancies for one or two classes, I think it would be nice to have a standard class and a corresponding viewer in GTK+. It might motivate people to

Re: undo in textview

2009-09-24 Thread A. Walton
2009/9/24 Javier Jardón javierjc1...@gmail.com: 2009/9/24 Holger Berndt bern...@gmx.de: Anyways, given that undo is a very important user interaction component, and it's nasty to have library dependancies for one or two classes, I think it would be nice to have a standard class and a