[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Beaver-devel] [Patch] Feature: Tab width
From: |
Tobias Heinzen |
Subject: |
Re: [Beaver-devel] [Patch] Feature: Tab width |
Date: |
Thu, 22 Jan 2009 16:39:15 +0100 |
User-agent: |
Thunderbird 2.0.0.19 (X11/20090102) |
Higor Eurípedes wrote:
> Patch to visualy resize the tab character:
>
> http://enygmata.site88.net/patches/beaver0.4.0/tab_width.patch
>
> To change the tab character size, use the preferences window.
>
> Needs testing.
>
>
I would suggest the following changes
box = gtk_hbox_new(FALSE, 0);
label = gtk_label_new_with_mnemonic ("Tab width: ");
gtk_misc_set_alignment (GTK_MISC(label), 0, 0.5);
button = gtk_spin_button_new_with_range (1, 8, 1);
gtk_box_pack_start(GTK_BOX(box), label, TRUE, TRUE, 0);
gtk_box_pack_start(GTK_BOX(box), button, TRUE, TRUE, 0);
gtk_table_attach_defaults (GTK_TABLE(table), box, 0, 1, 2, 3);
gtk_spin_button_set_value(GTK_SPIN_BUTTON(button), settings->tab_width);
g_signal_connect (G_OBJECT(button), "value-changed",
(GtkSignalFunc)signal_tab_width, NULL);
This way the label is on the left and has a ':' in it :-)
I tried the patch but I don't understand it. Changing the value didn't
change anything for me??
Greets
Tobias