[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Beaver-devel] [Patch] Feature: Tab width
From: |
Higor Eurípedes |
Subject: |
Re: [Beaver-devel] [Patch] Feature: Tab width |
Date: |
Thu, 22 Jan 2009 12:53:01 -0300 |
> 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 will fix it tomorrow.
> I tried the patch but I don't understand it. Changing the value didn't
> change anything for me??
Make sure the lines you are looking at are idented with the tab character '\t'
and not with spaces.
Cya.
--
Higor Euripedes (enygmata)