How to wrap text to next line automatically when using GtkCellRendererText?

2009-05-19 Thread Zhihai Wang
Dear all, I'm using GtkCellRendererText to render some text. This text might be very long, and I want the text wrapped to next line(s) according to the width of the window, which means I can't set "wrap-width" property of GtkCellRendererText since the width of the whole window might be resized by

Re: how do you create popup window using glade3

2009-05-19 Thread Tadej Borovšak
Hello. Both manually creating a dialog and using glade to do it are valid choices in this case. What you'll do depends on the complexity of the dialog (complex layout can be easier to create using glade). I wrote a simplistic blog post about dialogs in GTK+ which you may find useful. It displays

how do you create popup window using glade3

2009-05-19 Thread frank zhu
hi, I am new to GTK+ development and I used glade3 to create my application window which contains a menu. If a menu item is activated, I want to popup another window. I think the easiest way is to write a callback function to create it in C code, but is this the common way? or is it possible to cr

Problem activating a column in a row of a TreeView

2009-05-19 Thread Jon Zabala Gutiérrez
Hi Guys, I am developing a app with Gtk and I have a problem that is driving me mad. I have a TreeView with 3 columns, one of these columns associated to a Gtk::CellRendererText. My problem is that I want to activate this CellRenderer, saying in other words, I want to put the cursor in this

Re: expose event following button press/release event

2009-05-19 Thread Paul Davis
On Mon, May 18, 2009 at 5:33 AM, Tony Wang wrote: > Hi Guys, > Why there is always one expose-event after > the button-press-event(and button-release-event)? that means my app redraw > itself twice for one button event, which made the app UI flickers, any clues > for settling the problem? handle