[Xfce4-commits] CVS: xfce4/libxfcegui4/libxfcegui4 dialogs.c, 1.24, 1.25
Jean-François Wauthy
pollux at xfce.org
Wed Jul 21 18:36:04 CEST 2004
Le dim 18/07/2004 à 17:45, Jasper Huijsmans a écrit :
> pollux at lunar-linux.org wrote:
> > Update of /var/cvs/xfce/xfce4/libxfcegui4/libxfcegui4
> > In directory dbguin.lunar-linux.org:/tmp/cvs-serv21398
> >
> > Modified Files:
> > dialogs.c
> > Log Message:
> > xfce_confirm 'cancel' button becomes a 'no' button if stock_id is GTK_STOCK_YES
> >
>
> I'd like to take this opportunity to say something about dialog design.
> In general I think we should try and follow the GNOME HIG. This means
> that in general Yes/No or Ok/Cancel dialogs are not what you want.
>
> The button order is <alternate action> <cancel> <default action>.
>
> So, instead of this:
> ------------------------------------------
> Do you want to save changes to the file?
>
> No Yes
> ------------------------------------------
>
> We get this:
> ------------------------------------------
> Do you want to save changes to the file?
>
> Discard changes Cancel Save
> ------------------------------------------
>
>
> It's not a very big deal, but I think it's nicer and it makes us fit in
> better with GNOME applications, which is a good thing IMO.
>
i added xfce_message_dialog in libxfcegui4. it allows you to easily
create dialog like that and returns the response id so you don't have to
care about gtk_dialog_run,... and it accepts gtk stock buttons, or
custom buttons using a gtk stock icon and text or a gdkpixbuf and text
or just a text; i'm writing the doc
> Jasper
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://lunar-linux.org/mailman/listinfo/xfce4-dev
--
Jean-François Wauthy <pollux at xfce.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e.
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20040721/e6f5b2ca/attachment.pgp>
More information about the Xfce4-dev
mailing list