[gtk+/font-selection-new: 73/73] GtkFontSelection: 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-selection-new: 73/73] GtkFontSelection: Check if the deprecated widgets are present before updating the size list
- Date: Sat, 7 May 2011 18:18:21 +0000 (UTC)
commit cc038729210ccd908eddbc1dadd11fd18ed1ad37
Author: Alberto Ruiz <aruiz gnome org>
Date: Wed May 4 23:23:13 2011 +0100
GtkFontSelection: Check if the deprecated widgets are present before updating the size list
gtk/gtkfontsel.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkfontsel.c b/gtk/gtkfontsel.c
index 5da1d04..074124a 100644
--- a/gtk/gtkfontsel.c
+++ b/gtk/gtkfontsel.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]