From b110f7e404759128793256335e7bff866ce97d81 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Thu, 23 Jan 2003 19:30:48 +0000 Subject: Make the label bold using the new args to e_clipped_label_new(). * e-title-bar.c (e_title_bar_construct): Make the label bold using the new args to e_clipped_label_new(). * e-clipped-label.c (build_layout): Honor ->font_size and ->layout in the newly created PangoLayout. (e_clipped_label_new): New args font_weight, font_size. (e_clipped_label_size_request): Removed unused variables. (e_clipped_label_expose): Likewise. (e_clipped_label_expose): Likewise. (e_clipped_label_set_text): Likewise. (e_clipped_label_recalc_chars_displayed): Likewise. * e-clipped-label.h (struct _EClippedLabel): Add font_size, layout members. svn path=/trunk/; revision=19591 --- widgets/misc/e-clipped-label.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'widgets/misc/e-clipped-label.h') diff --git a/widgets/misc/e-clipped-label.h b/widgets/misc/e-clipped-label.h index ab0d741ebf..b0165b3e7d 100644 --- a/widgets/misc/e-clipped-label.h +++ b/widgets/misc/e-clipped-label.h @@ -51,6 +51,11 @@ struct _EClippedLabel gchar *label; + /* Font size multiplication factor; 1.0 means "default GTK font + size" */ + gfloat font_size; + PangoWeight font_weight; + /* Our PangoLayout */ PangoLayout *layout; @@ -81,13 +86,14 @@ struct _EClippedLabelClass }; -GtkType e_clipped_label_get_type (void); -GtkWidget* e_clipped_label_new (const gchar *text); - -gchar* e_clipped_label_get_text (EClippedLabel *label); -void e_clipped_label_set_text (EClippedLabel *label, - const gchar *text); +GtkType e_clipped_label_get_type (void); +GtkWidget *e_clipped_label_new (const gchar *text, + PangoWeight font_weight, + gfloat font_size); +gchar *e_clipped_label_get_text (EClippedLabel *label); +void e_clipped_label_set_text (EClippedLabel *label, + const gchar *text); #ifdef __cplusplus } -- cgit v1.2.3