Help, How to use GLib's Lexical Scanner??

2006-07-05 Thread SolarSea
Hi, My question is, there is a file, I want to get some lines from it. Before these lines, there are some multi line comments, which include the key words I need to search in the file. For example, the content of the file may like below: .

GtkFixed child control resizing

2006-07-05 Thread Atanas Atanasov
I have a GtkWindow with a single GtkFixedChild. Then all the rest of the interface goes into the GtkFixed with exact positions which I can set through gtk_fixed_put or gtk_fixed_move. Suppose I have a GtkLabel child. I would like to be able to set its size and apply a text alignment through

Re: gtk_tree_view_get_visible_range

2006-07-05 Thread Christopher Backhouse
What do you exactly expect from gtk_tree_view_get_visible_range() when the tree view is not realized, has no size allocated, etc. (beside a more helpful error message)? What is *visible* then? I probably expect FALSE again but I suppose the current behaviour is OK The errors disappear if

Re: GtkFixed child control resizing

2006-07-05 Thread Tristan Van Berkom
Atanas Atanasov wrote: I have a GtkWindow with a single GtkFixedChild. Then all the rest of the interface goes into the GtkFixed with exact positions which I can set through gtk_fixed_put or gtk_fixed_move. Suppose I have a GtkLabel child. I would like to be able to set its size and apply a

Re: GtkFixed child control resizing

2006-07-05 Thread Atanas Atanasov
Thanks. The size request worked. However there is an issue. Say I create my label to cover all the GtkFixed and set its text justification to left. What I expect to see is something like: /--\ | | |line 1 is longer | |line2

Re: GtkFixed child control resizing

2006-07-05 Thread Tristan Van Berkom
Atanas Atanasov wrote: [...] but what I see is /--\ | | | line 1 is longer | | line2| | | \--/ Have you set the xalign property to 0.0 ? Cheers,

Re: Re: GtkFixed child control resizing

2006-07-05 Thread John Cupitt
On 7/5/06, Atanas Atanasov [EMAIL PROTECTED] wrote: Thanks. The size request worked. However there is an issue. Say I create my label to cover all the GtkFixed and set its text justification to left. What I expect to see is something like: The justification setting controls the way line

Re: Re: GtkFixed child control resizing

2006-07-05 Thread Atanas Atanasov
Thanks. It worked perfectly. Atanas ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Do GTKhave tabbed pane or multi-page or such?

2006-07-05 Thread justforfun
I am using GTK to develop a GUI for a low level app on Linux, so far so good. However, my app grows, I need more and more display capabilities. One window seems not having enough space... I have checked the tutorial on gtk.org, could not find abbed pane or multi-page or such. Am I missing

Re: Do GTKhave tabbed pane or multi-page or such?

2006-07-05 Thread John Cupitt
On 7/5/06, justforfun [EMAIL PROTECTED] wrote: I have checked the tutorial on gtk.org, could not find abbed pane or multi-page or such. Sounds like you need gtknotebook: http://developer.gnome.org/doc/API/2.0/gtk/GtkNotebook.html ___

Re: Do GTKhave tabbed pane or multi-page or such?

2006-07-05 Thread Fernando ApesteguĂ­a
Are you looking for GtkNotebook? http://developer.gnome.org/doc/API/2.0/gtk/GtkNotebook.html Remember that the Guideline suggests not to use this if there are a lot of tabs and they need to be scrolled... if that is the case, then use a list:

Tree views, check cell renderers and ENTER button problem

2006-07-05 Thread Attilio Fiandrotti
Hi In my application i have a treeview where each row contains a check cell renderer and the signal row-activated is sent by the treeview to a callback function that clicks the OK button that makes the application to process data. Now, when a check cell has focus, both SPACEBAR and ENTER keys

Centering window

2006-07-05 Thread 3saul
Is it possible to have my window always positioned in the centre of the screen but at the top, even when the window is resized? GTK_WIN_POS_CENTER_ALWAYS - seems to centre on both x and y. GTK_WIN_POS_CENTER - doesn't seem to work when resizing. -- View this message in context: