[lokisetup] tweaking the layout of installs with components?
Timothee Besset
ttimo at idsoftware.com
Sun Mar 10 12:33:38 EST 2002
I found out. If you have stuff like:
<component>
bleh
<option>
then the label was initialized with 'bleh\n ' strings, causing the weird
layout
I am attaching a patch that fixes it (using g_strstrip)
TTimo
On Sat, 9 Mar 2002 13:32:33 -0500 (EST)
"Ryan C. Gordon" <icculus at clutteredmind.org> wrote:
>
> > I am trying to make some new additions in setup and use the <component>
> > attribute for it. My problem right now is that the layout isn't terribly
> > good. I'd rather have the option names closer to the component name ..
> > anyone can hint me where to look?
>
> This is totally a guess, I haven't even compiled it, but it's probably this:
>
> --ryan.
>
>
> diff -u -r1.66 gtk_ui.c
> --- gtk_ui.c 2002/02/24 02:35:16 1.66
> +++ gtk_ui.c 2002/03/09 18:31:24
> @@ -992,6 +992,7 @@
> name = beginning_string(node->content);
> if ( *name ) {
> button = gtk_label_new(name);
> + gtk_label_set_justify(GTK_LABEL(button), GTK_JUSTIFY_LEFT);
> gtk_widget_show(button);
> gtk_box_pack_start(GTK_BOX(box), GTK_WIDGET(button), FALSE, FALSE, 0);
> }
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gtk_ui.c.patch
Type: application/octet-stream
Size: 1277 bytes
Desc: not available
URL: <http://icculus.org/pipermail/lokisetup/attachments/20020310/f380dac7/attachment.obj>
More information about the Lokisetup
mailing list