Calling libnotify functions from GTK

2008-12-16 Thread Sundaram
Hi, I wrote a small GTK+ app. where I have a GtkEntry box & a button. When I type something in the text box and click the button, I call notify_notification_show() and it works fine. Then I added code to regiester with X server to give a KEYPRESS event on a hotkey press (XGrabKey). I added gdk_w

Re: how to add button inside the treview list

2008-12-16 Thread prasadam kumar
Hi Viven, As you suggested i have tried with the GtkCellRendererText, using this i am able to paint the button box into the cell but i am unable to put the text on top of the painted button, please some body help me out how to render the text on the button. Please find the code in attachment. Th

Re: Fill justification for last line to?

2008-12-16 Thread Behdad Esfahbod
Moshe Wagner wrote: > Hi, > When a textview's justification is set to "JUSTIFY_FILL", it expands all the > lines to fit the width of the textview, besides the last line in each > paragraph. > I know normally this is the right way it should be done, but in my specific > case, I need ALL lines justif

Re: Question about TreeView particularly GtkCellRendererCombo

2008-12-16 Thread Tadej Borovšak
I think that this cannot be achieved, main reason being that combo cell renderer is actually drawing it's content with 2 different renderers. First renderer is drawing text in non-editing state and gets it's data from treeview's model. The second renders the whole popup list in editing state and it

Re: Question about TreeView particularly GtkCellRendererCombo

2008-12-16 Thread John M Collins
Thanks again for your help: I do actually need to create and delete this dialog as needed, indeed in principle I could have several of them active at the same time (they are sub-structures hanging off a list of "master" structures) so I do need to be careful that everything is destroyed. The ques

Re: Question about TreeView particularly GtkCellRendererCombo

2008-12-16 Thread Tadej Borovšak
> 1. Given that this is a dialog which may be popped up and dismissed several > times whilst the application runs, do I need to do any g_object_unrefs on > any of the list stores or other parts to avoid memory leaks? If you'll be only hiding your popup window and reuse it several times, you don't

Fill justification for last line to?

2008-12-16 Thread Moshe Wagner
Hi, When a textview's justification is set to "JUSTIFY_FILL", it expands all the lines to fit the width of the textview, besides the last line in each paragraph. I know normally this is the right way it should be done, but in my specific case, I need ALL lines justified - In other words, I don't ca

Re: how to add button inside the treview list

2008-12-16 Thread Vivien Malerba
AFAIK, you can't display a button in a treeview column (no GtkCellRenderer exist for this). Also having buttons for each row would make the treeview not as much useable as it is now because each button would consume ressources (memory and X ressources), and it is not how GtkCellRenders are designed

how to add button inside the treview list

2008-12-16 Thread prasadam kumar
Hi, I am unable to find the way to add the button inside the treeview using GTK 'C' bindings. I am able to insert pixbuf,togglebuttons,processbar inside the treeview, but according to my requirement i have to put Button inside the treeview. I have not found any API related to button with treeview