libxfce4ui dialogs stuff

Brian J. Tarricone brian at tarricone.org
Wed Aug 12 21:58:15 CEST 2009


On 08/08/2009 05:19 AM, Nick Schermer wrote:
> 2009/8/8 Brian J. Tarricone <brian at tarricone.org>:
>> Hey Nick,
>>
>> Porting xfdesktop to libxfce4ui... for xfce_message_dialog(),
>> XFCE_BUTTON_TYPE_MIXED replaces XFCE_CUSTOM_STOCK_BUTTON, right?
> 
> Mm no, you can use GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE directly without using
> a XFCE_BUTTON_TYPE_*, so first_button_text accepts either
> XFCE_BUTTON_TYPE_MIXED,
> XFCE_BUTTON_TYPE_PIXBUF or a stock id. Duno if that's really handy tho, could
> simply add a XFCE_BUTTON_TYPE_STOCK again but it's shorter for dialogs
> with only stock
> buttons.

Hmm, I'm not sure if it's the same thing.  XFCE_CUSTOM_STOCK_BUTTON used
to take three params: stock id, button text, and response id.  The idea
was that you could create a button with a stock icon, but custom text.
Can you still do that (maybe with XFCE_BUTTON_TYPE_MIXED)?

>> And I've noticed the order of args after it has changed from (label,
>> stock_id, response_id) to (stock_id, label, response_id).  Is that right?
> 
> For XFCE_BUTTON_TYPE_MIXED yeah, was not intentional, could swap that.

Nah, I kinda like it better the new way; sems more consistent to have
the stock id first.  But it's something that needs to be remembered when
porting...

	-brian



More information about the Xfce4-dev mailing list