Thank you Francis,

It's really friendly to use.

I would like to go further. Maybe is it possible to customize the logic of
shortening and truncation ?
Example : "Document : 1" could become "Doc. 1" or "Docu. 1" "Docume. 1"

I looked in the code, but I got lost from
pango_renderer_draw_layout() in
https://git.gnome.org/browse/pango/tree/pango/pango-renderer.c and his
friend https://git.gnome.org/browse/pango/tree/pango/pango-layout.c

Although I used >grep I can not find cases for the reference "..."

Do you know how I can do this?

2013/5/28 Francis (Grizzly) Smit <[email protected]>

> On 28/05/13 06:11, Maggio Mago wrote:
> > Hello,
> >
> >
> > Like Blender's GUI, i would like to shrink widgets. When resizing a
> > panel, Blender shrink his Widgetscontrol.
> >
> > Gtk+3 does she planned a way to achieve it? If yes, how to get there ?
> >
> > PJ : Screen shot of Blender Panel
> >
> >
> try this create your buttons empty and use add to ad a label set the
> label ellisize mode to one of
>
> ELLIPSIZE_START
> ELLIPSIZE_MIDDLE
> ELLIPSIZE_END
>
> using Gtk::Label::set_ellipsize     (     Pango::EllipsizeMode
> mode    )
>
> or you could burrow into your button to get it's label using
> Gtk::Widget* Gtk::Bin::get_child     (         )
>
> which buttons inherit from Gtk::Bin but the immediate child may not be
> the label it could be a Gtk::Box to hold the label and an image so you'd
> need to test with dynamic_cast<Gtk::Label*>(yourbutton->get_child()) etc
>
>
> --
>
>
>   .~.     In my life God comes first....
>   /V\         but Linux is pretty high after that :-D
>  /( )\    Francis (Grizzly) Smit
>  ^^-^^    http://www.smit.id.au/
>
> _______________________________________________
> gtkmm-list mailing list
> [email protected]
> https://mail.gnome.org/mailman/listinfo/gtkmm-list
>
_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to