[gtk+/font-chooser: 73/92] 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/92] GtkFontChooser: Check if the deprecated widgets are present before updating the size list
- Date: Mon, 25 Jul 2011 14:20:28 +0000 (UTC)
commit a38ede804ce715a04deff69aee086f157a69d5bb
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]