aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-clipped-label.h
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2003-01-24 03:30:48 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2003-01-24 03:30:48 +0800
commitb110f7e404759128793256335e7bff866ce97d81 (patch)
tree1ea0326f2de7de7b6afebd70256c98febccff03e /widgets/misc/e-clipped-label.h
parent82978ed2aeeaca044d3df85b21c59c9c8f0d3b2b (diff)
downloadgsoc2013-evolution-b110f7e404759128793256335e7bff866ce97d81.tar.gz
gsoc2013-evolution-b110f7e404759128793256335e7bff866ce97d81.tar.zst
gsoc2013-evolution-b110f7e404759128793256335e7bff866ce97d81.zip
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
Diffstat (limited to 'widgets/misc/e-clipped-label.h')
-rw-r--r--widgets/misc/e-clipped-label.h18
1 files changed, 12 insertions, 6 deletions
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
}