Re: [gtkmm] Button with icon?



>Paul Davis wrote:
>> don't know about stock, but i would just do:
>> 
>>       label.set_text (_("internationalized text"));
>>       vbox.pack_start (icon);
>>       vbox.pack_start (label);
>>       button.add (vbox);
>
>So it is legitimate to add an icon like this, without using the stock?
>What #include must I use in order to get the _() macro, then?

the stock stuff as i understand is just there to make your life as a
programmer easier, and to provide more consistency for users. 

the _() macro is part of the gettext internationalization system. its
not just an include. you need to setup gettext for your application.

--p



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]