[gtk+/font-chooser: 73/84] GtkFontChooser: Check if the deprecated widgets are present before updating the size list
- From: Alberto Ruiz <aruiz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/font-chooser: 73/84] GtkFontChooser: Check if the deprecated widgets are present before updating the size list
- Date: Fri, 20 May 2011 09:04:37 +0000 (UTC)
commit 631f45dc003015c1f1e1716307878b45784330aa
Author: Alberto Ruiz <aruiz gnome org>
Date: Wed May 4 23:23:13 2011 +0100
GtkFontChooser: Check if the deprecated widgets are present before updating the size list
gtk/gtkfontchooser.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkfontchooser.c b/gtk/gtkfontchooser.c
index 5da1d04..074124a 100644
--- a/gtk/gtkfontchooser.c
+++ b/gtk/gtkfontchooser.c
@@ -412,8 +412,11 @@ spin_change_cb (GtkAdjustment *adjustment, gpointer data)
#ifndef GTK_DISABLE_DEPRECATED
- priv->ignore_size = TRUE;
- update_size_list_selection (fontsel);
+ if (priv->size_list)
+ {
+ priv->ignore_size = TRUE;
+ update_size_list_selection (fontsel);
+ }
#endif /* GTK_DISABLE_DEPRECATED */
gtk_widget_queue_draw (priv->preview);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]