libxfce4ui
Brian J. Tarricone
bjt23 at cornell.edu
Tue Dec 18 10:45:29 CET 2007
On Tue, 18 Dec 2007 10:16:13 +0100 Nick Schermer wrote:
> 2007/12/17, Brian J. Tarricone <bjt23 at cornell.edu>:
> > typedef enum
> > {
> > XFCE_PANGO_SIZE_XX_SMALL = -3,
> > XFCE_PANGO_SIZE_X_SMALL = -2,
> > XFCE_PANGO_SIZE_SMALL = -1,
> > XFCE_PANGO_SIZE_NORMAL = 0,
> > XFCE_PANGO_SIZE_LARGE = 1,
> > XFCE_PANGO_SIZE_X_LARGE = 2,
> > XFCE_PANGO_SIZE_XX_LARGE = 3,
> >
> > XFCE_PANGO_SIZE_SMALLER = -100,
> > XFCE_PANGO_SIZE_LARGER = 100,
> > } XfcePangoSize;
> > GtkWidget *
> > xfce_gtk_label_new_custom(const gchar *label,
> > XfcePangoSize size,
> > PangoStyle style,
> > PangoWeight weight);
>
> And how about something like this:
>
> typedef enum
> {
> XFCE_LABEL_STYLE_ITALIC,
> XFCE_LABEL_STYLE_SMALL_ITALIC,
> XFCE_LABEL_STYLE_BOLD,
> XFCE_LABEL_STYLE_LARGE_BOLD
> } XfceLabelStyle;
>
> GtkWidget *xfce_gtk_label_new_with_style (const gchar *label,
> XfceLabelStyle style);
>
> Although you're idea is good, I have the feeling it's a bit too much
> somehow. Why not provide something the same for the 'common' cases.
If you're willing to go through all of Xfce's user interface to see
what combinations of values are used frequently, sure, go for it...
-brian
More information about the Xfce4-dev
mailing list