Re: [glade--]Change in table attach options (patch)
"Marcelo E. Magallon" <[email protected]>
| Newsgroups | gmane.comp.gnome.glademm |
|---|---|
| Message-ID | <[email protected]> |
>> "Marcelo E. Magallon" <[email protected]> writes: > The format of the table attach options has changed between glade 1 and > glade 2. I should comment something about this patch. A table looks like this in Glade 2: <widget class="GtkTable" id="table1"> [...] <child> <widget class="GtkScrolledWindow" id="scrolledwindow1"> [...] </widget> <packing> [...] <property name="x_options">fill</property> </packing> </child> <child> <widget class="GtkScrolledWindow" id="scrolledwindow2"> [...] </widget> <packing> [...] <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> </widget> that is, [xy]_options may or may not be there. If it's there, it might be empty. "Not there" means "default" (I guess). "Empty" means everything is is false. In the case of tables you can set "shrink" via the widget's properties dialog so "empty" would be "expand|fill|shrink". I doubt this is correct. Looking at the GTK 2 code I can't really say what that would do. Playing with a table with different options here I can't see any difference between "expand|fill" and "expand|fill|shrink". Something related to this has been discussed recently on the gtkmm mailing list. Concensus is that !(expand|fill) == shrink and that "fill" alone doesn't make sense. This isn't entirely true. Think of a table where (1,0) has "expand" in x and (1,1) has "fill" in x. The first one will expand the size of the column and the second one will fill the extra space. If you take a look at the patch you'll notice a horrible "AttachOptions()" in there. That's because gtkmm2 doesn't let me use "0". I *guess* this should be "shrink", but I'm not 100% sure. -- Marcelo