[gtk+] Fix void function n gtkfontbutton.c so it does not try to return a value. Fixes bug #661089.



commit 0940974f5aef02fd6c674517c49aafd285adce69
Author: Brian Cameron <brian cameron oracle com>
Date:   Mon Oct 10 14:13:35 2011 -0500

    Fix void function n gtkfontbutton.c so it does not try to return a value.
     Fixes bug #661089.

 gtk/gtkfontbutton.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c
index 21d6485..21590f7 100644
--- a/gtk/gtkfontbutton.c
+++ b/gtk/gtkfontbutton.c
@@ -275,9 +275,9 @@ gtk_font_button_set_show_preview_entry (GtkFontButton *font_button,
   GtkFontButtonPrivate *priv = font_button->priv;
 
   if (priv->font_dialog)
-    return gtk_font_chooser_set_show_preview_entry (GTK_FONT_CHOOSER (priv->font_dialog), show);
-
-  priv->show_preview_entry = show != FALSE;
+    gtk_font_chooser_set_show_preview_entry (GTK_FONT_CHOOSER (priv->font_dialog), show);
+  else
+    priv->show_preview_entry = show != FALSE;
 }
 
 static PangoFontFamily *



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]