[gtk+] label: Clear layout on state change
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] label: Clear layout on state change
- Date: Mon, 5 Dec 2011 17:29:25 +0000 (UTC)
commit c3cccf586c6852fc81fbeead9705263227053d01
Author: Benjamin Otte <otte redhat com>
Date: Mon Dec 5 18:25:39 2011 +0100
label: Clear layout on state change
Selected or active text might be rendered differently.
gtk/gtklabel.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index a509669..638f999 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -3850,6 +3850,9 @@ gtk_label_state_flags_changed (GtkWidget *widget,
gtk_label_update_cursor (label);
}
+ /* We have to clear the layout, fonts etc. may have changed */
+ gtk_label_clear_layout (label);
+
if (GTK_WIDGET_CLASS (gtk_label_parent_class)->state_flags_changed)
GTK_WIDGET_CLASS (gtk_label_parent_class)->state_flags_changed (widget, prev_state);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]