libxfce4ui

Nick Schermer nickschermer at gmail.com
Tue Dec 18 10:16:13 CET 2007


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.

Nick



More information about the Xfce4-dev mailing list