Re: Obtaining pointer to the window with focus

2013-12-09 Thread Florian Müllner
On Mon, Dec 9, 2013 at 5:45 PM, David Buchan wrote: > while ((widget = g_list_next (list)) != NULL) { // line 577 g_list_next() returns the element as GList, you can get to the actual content by accessing the 'data' element, e.g. something like: GList *list, *l; list = gtk_window_get_toplevels(

Obtaining pointer to the window with focus

2013-12-09 Thread David Buchan
I've not seen a clear answer to this obvious question. Maybe I'm not searching for the right terms. What I want to do is create a dialog if an error occurs, and I want it to appear atop the window that currently has focus. This seems like a standard thing to do, so it's weird I can't find a cle

Re: freely re sizable GtkTreeView columns

2013-12-09 Thread Chris Angelico
On Mon, Dec 9, 2013 at 9:43 PM, Max Linke wrote: > pack option was the right hint. I just saw that the expanding option is > hidden there in glade. After setting expand to yes for the > ScrolledWindow everything works like I expect it to. > > Thanks for the quick help Excellent! Glad to be of ser

Re: freely re sizable GtkTreeView columns

2013-12-09 Thread Max Linke
On Mon, 2013-12-09 at 20:49 +1100, Chris Angelico wrote: > On Mon, Dec 9, 2013 at 7:45 PM, Max Linke wrote: > > Thanks that fixed it. So far Gtk looks nice and easier then I > > expected :) > > I quite like GTK, too. Most of my GUI work is in Pike, which is > semantically similar to Python (which

Re: freely re sizable GtkTreeView columns

2013-12-09 Thread Chris Angelico
On Mon, Dec 9, 2013 at 7:45 PM, Max Linke wrote: > Thanks that fixed it. So far Gtk looks nice and easier then I > expected :) I quite like GTK, too. Most of my GUI work is in Pike, which is semantically similar to Python (which I think is what you're using?). GTK does a fine job of everything I

Re: freely re sizable GtkTreeView columns

2013-12-09 Thread Max Linke
On Sun, 2013-12-08 at 15:09 -0800, Andrew Potter wrote: > The cell renderer should be or be derived from a GtkCellRendererText. > The GtkCellRendererText has an ellipsize property that you can set. If > the text isn't allowed to be ellipsized, then the minimum size of the > column is going to be t