[gedit] Do not use gtk 2.18 syntax



commit f39ef7405c89696c7f2419b3bf8e571bc861b60a
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Apr 18 15:22:34 2010 +0200

    Do not use gtk 2.18 syntax

 gedit/gedit-file-chooser-dialog.c |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/gedit/gedit-file-chooser-dialog.c b/gedit/gedit-file-chooser-dialog.c
index 8094ea9..9485833 100644
--- a/gedit/gedit-file-chooser-dialog.c
+++ b/gedit/gedit-file-chooser-dialog.c
@@ -107,11 +107,16 @@ create_option_menu (GeditFileChooserDialog *dialog)
 static void
 update_newline_visibility (GeditFileChooserDialog *dialog)
 {
-	gboolean issave = gtk_file_chooser_get_action (GTK_FILE_CHOOSER (dialog)) ==
-	                  GTK_FILE_CHOOSER_ACTION_SAVE;
-
-	gtk_widget_set_visible (dialog->priv->newline_label, issave);
-	gtk_widget_set_visible (dialog->priv->newline_combo, issave);
+	if (gtk_file_chooser_get_action (GTK_FILE_CHOOSER (dialog)) == GTK_FILE_CHOOSER_ACTION_SAVE)
+	{
+		gtk_widget_show (dialog->priv->newline_label);
+		gtk_widget_show (dialog->priv->newline_combo);
+	}
+	else
+	{
+		gtk_widget_hide (dialog->priv->newline_label);
+		gtk_widget_hide (dialog->priv->newline_combo);
+	}
 }
 
 static void



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