GtkComboBox and focus-in-event
Hi, I would like to use the "focus-in-event" and "focus-out-event" for GtkComboBox. But the signals were not called. Then I added a GtkEventBox as parent so it works for a while. But on recent GTK versions it stopped working. Any clues? Thanks in Advance, Antonio Scuri ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Distributing extra space to children
Le septidi 27 frimaire, an CCXIX, Robert Pearce a écrit : > > - Allocate a sufficiently large table, say ten cells across. > - Place the first child in cells 0..6 (i.e. attach with 0,7) > - Place the second child in cells 7..9 (i.e. attach with 7,10) > - Set the table to be homogenous > > Because the table cells are all equal sized, and the child widgets > occupy 7 and 3 respectively, they get 70% and 30% of the space. They get 70% and 30% of the whole space, not 70% and 30% of the extra space when all children already had their minimum need. Regards, -- Nicolas George signature.asc Description: Digital signature ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Distributing extra space to children
On Sat, 18 Dec 2010 00:17:11 +0900 Tristan wrote: > > It does sound like an interesting feature, I wonder if there's > any way to achieve this without adding features to GtkBox. It's certainly possible to kludge something like it with tables: - Allocate a sufficiently large table, say ten cells across. - Place the first child in cells 0..6 (i.e. attach with 0,7) - Place the second child in cells 7..9 (i.e. attach with 7,10) - Set the table to be homogenous Because the table cells are all equal sized, and the child widgets occupy 7 and 3 respectively, they get 70% and 30% of the space. Cheers, Rob ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Distributing extra space to children
On Sat, Dec 18, 2010 at 12:17:11AM +0900, Tristan Van Berkom wrote: > On Fri, Dec 17, 2010 at 9:56 PM, Ingo Krabbe wrote: > > On Fri, Dec 17, 2010 at 10:30:21AM -0200, José Romildo Malaquias wrote: > >> Hello. > >> > >> Is it possible to distribute any extra space a box may have to its > >> children in different proportions. For instance, suppose that there are > >> 2 children, and the first would receive 70% and the second 30% of the > >> extra space. > >> > >> Romildo > > > > Hi Romildo, > > > > this distribution can be controlled by GtkAlignment, where each children > > gets an alignment as parent and the ailgnment gets the box as its > > parent. > > I dont believe that's what he means, what he wants is that extra > "expand" space be distributed unevenly among children, however > both children should fill the allocation (with alignments both > alignments still receive 50% of the extra space and the child > takes up a portion of that space, leaving an empty gap). > > It does sound like an interesting feature, I wonder if there's > any way to achieve this without adding features to GtkBox. Tristan has made clear what I am looking for. It is something like the properties weightx and weighty used in the BagGridLayout in Swing (a standard Java library for building GUI). Will this still be not possible with forthcoming Gtk+-3 version? Romildo ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Distributing extra space to children
On Fri, Dec 17, 2010 at 9:56 PM, Ingo Krabbe wrote: > On Fri, Dec 17, 2010 at 10:30:21AM -0200, José Romildo Malaquias wrote: >> Hello. >> >> Is it possible to distribute any extra space a box may have to its >> children in different proportions. For instance, suppose that there are >> 2 children, and the first would receive 70% and the second 30% of the >> extra space. >> >> Romildo > > Hi Romildo, > > this distribution can be controlled by GtkAlignment, where each children > gets an alignment as parent and the ailgnment gets the box as its > parent. I dont believe that's what he means, what he wants is that extra "expand" space be distributed unevenly among children, however both children should fill the allocation (with alignments both alignments still receive 50% of the extra space and the child takes up a portion of that space, leaving an empty gap). It does sound like an interesting feature, I wonder if there's any way to achieve this without adding features to GtkBox. Cheers, -Tristan ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Distributing extra space to children
On Fri, Dec 17, 2010 at 10:30:21AM -0200, José Romildo Malaquias wrote: > Hello. > > Is it possible to distribute any extra space a box may have to its > children in different proportions. For instance, suppose that there are > 2 children, and the first would receive 70% and the second 30% of the > extra space. > > Romildo Hi Romildo, this distribution can be controlled by GtkAlignment, where each children gets an alignment as parent and the ailgnment gets the box as its parent. bye ingo ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Distributing extra space to children
Hello. Is it possible to distribute any extra space a box may have to its children in different proportions. For instance, suppose that there are 2 children, and the first would receive 70% and the second 30% of the extra space. Romildo ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list