Commit f39ef740 authored by Paolo Borelli's avatar Paolo Borelli

Do not use gtk 2.18 syntax

parent 01e5c140
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment