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

Reply via email to