Re: gtk_widget_set_size_request delayed until next allocation change

2013-04-27 Thread jjacky
On 04/27/13 02:35, Sandro Mani wrote: Hello, I have a GtkDrawingArea inside a GtkViewport, and I have a callback connected to the size-allocate signal of the GtkViewport which resizes the GtkDrawingArea by calling gtk_widget_set_size_request on the latter, see sample source code below.

Re: 3.8 toplevel resize bug?

2013-04-03 Thread jjacky
On 04/02/13 18:36, HMRG software wrote: Hi all, Following is demo code for the 3.8 toplevel window resize bug I described in the previous message on this thread. If anyone sees any errors on my part, please let me know. I will otherwise file a bug report on this shortly. I believe

Re: multiple GTKentry inside a GTKnotebook

2012-06-19 Thread jjacky
On 06/19/12 21:43, Rudra Banerjee wrote: Yeti, Thanks for your help. That is working now. I have one more problem. I need to take the data from the combo box. So after the combo box, I added the line: gchar *bibtype = gtk_combo_box_get_active_text(GTK_COMBO_BOX(widget)); fprintf(stdout,

Re: desktop integration: program launcher entry and icon

2012-04-05 Thread jjacky
I believe you might want to include a .desktop file (installing it in e.g. /usr/share/applications/), and it should be used by all compatible DE-s. You can use whatever files you have there as examples, and the latest specs should be these:

Re: Problem destroying selection-list window

2012-02-27 Thread jjacky
Hi, I'm guessing this is because you try to destroy the window while it's still being used by GTK (to process signals, etc). One solution could be to only hide it instead, and destroy it later on. (For instance you could destroy it on a handler attached to unmap-event.) -j On 02/27/2012 10:45

Re: [GTK3] GtkEntry, why focus-in-event does not work ?

2012-02-23 Thread jjacky
On 02/23/2012 02:49 PM, Gilles DOFFE wrote: Hello, Below a simple application with a GtkButton and a GtkEntry. Two callbacks associated to this widgets following this rules : 1) When I click on the GtkButton, it should display the GtkEntry pointer value. 2) When I focus on the GtkEntry,

Re: How to extend a widget?

2011-12-16 Thread jjacky
Thanks. I will have a look into Vala, although for projects I have planned, I really want/need to be using C. And while GTK is oriented-object, it is written in C and, AFAIK, there are no such things as classes in C? I believe the way to create a widget based on/extending another one is how I

Re: How to extend a widget?

2011-12-16 Thread jjacky
Right, thanks. Alright so using extend might not have been the right term (probably comes because I've done some PHP and have been influenced by that), sorry. Oh, and I've used the term composite widget simply because I read it here, and assumed it was how such widgets were called:

Re: How to extend a widget?

2011-12-16 Thread jjacky
unfortunately... -j On 12/17/2011 12:21 AM, Michael Torrie wrote: On 12/16/2011 02:52 PM, jjacky wrote: And while GTK is oriented-object, it is written in C and, AFAIK, there are no such things as classes in C? As always, read the docs. Here is the documentation describing how to create new GObjects

Re: How to extend a widget?

2011-12-16 Thread jjacky
Alright, I think I'm starting to see things a little better now - thank you all. I believe, in the case of GtkCalendar, there are no virtual public methods, only static/private ones, and most of them use other such methods as well as the private structure, which is why creating a widget