Ooops, I need stronger specs, you wanted to get the size of four
spaces. I'd try this (untested) after setting the mono font.

        PangoLayout *layout;
        int width, height;

        layout = gtk_widget_create_pango_layout( program->text, "    " );
        pango_layout_get_pixel_size( layout, &width, &height );
        g_object_unref( layout );

Then use that width to build the PangoTabArray.

John

On 10/21/05, John Cupitt <[EMAIL PROTECTED]> wrote:
> On 10/21/05, Michael Matthews <[EMAIL PROTECTED]> wrote:
> > How do I change the default tabs from 8-space to 4-space?
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to