[nautilus-actions] GtkDialogs: remove (deprecated since 2.22) 'has_separator' property
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] GtkDialogs: remove (deprecated since 2.22) 'has_separator' property
- Date: Mon, 5 Dec 2011 21:12:32 +0000 (UTC)
commit 321484a948561931889bdf6db8dd6aa10e9b867c
Author: Pierre Wieser <pwieser trychlos org>
Date: Mon Dec 5 22:08:27 2011 +0100
GtkDialogs: remove (deprecated since 2.22) 'has_separator' property
ChangeLog | 11 +++++++++++
src/core/na-importer-ask.c | 4 ++++
src/nact/nact-add-capability-dialog.c | 4 ++++
src/nact/nact-add-capability.ui | 1 -
src/nact/nact-add-scheme-dialog.c | 4 ++++
src/nact/nact-add-scheme.ui | 1 -
src/nact/nact-export-ask.c | 4 ++++
src/nact/nact-icon-chooser.c | 4 ++++
src/nact/nact-icon-chooser.ui | 1 -
src/nact/nact-preferences-editor.c | 4 ++++
10 files changed, 35 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4990c5a..c62f4ea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
2011-12-05 Pierre Wieser <pwieser trychlos org>
+ * src/core/na-importer-ask.c (import_ask_new):
+ * src/nact/nact-add-capability-dialog.c (on_base_initialize_gtk_toplevel):
+ * src/nact/nact-add-capability.ui:
+ * src/nact/nact-add-scheme-dialog.c (on_base_initialize_gtk_toplevel):
+ * src/nact/nact-add-scheme.ui:
+ * src/nact/nact-export-ask.c (on_base_initialize_gtk_toplevel):
+ * src/nact/nact-icon-chooser.c (on_base_initialize_gtk_toplevel):
+ * src/nact/nact-icon-chooser.ui:
+ * src/nact/nact-preferences-editor.c (on_base_initialize_gtk_toplevel):
+ Remove (deprecated since 2.22) 'has_separator' property from GtkDialog.
+
* src/io-xml/naxml-reader.c (naxml_reader_import_from_uri):
Display an synthetic error message if cannot handle the file.
diff --git a/src/core/na-importer-ask.c b/src/core/na-importer-ask.c
index 70efcfc..b84d8a3 100644
--- a/src/core/na-importer-ask.c
+++ b/src/core/na-importer-ask.c
@@ -240,6 +240,10 @@ import_ask_new( GtkWindow *parent )
"destroy", G_CALLBACK( on_destroy_toplevel ), dialog );
st_dialog = dialog;
}
+
+#if !GTK_CHECK_VERSION( 2,22,0 )
+ gtk_dialog_set_has_separator( GTK_DIALOG( toplevel ), FALSE );
+#endif
}
}
g_object_unref( builder );
diff --git a/src/nact/nact-add-capability-dialog.c b/src/nact/nact-add-capability-dialog.c
index 71a92f4..21381bd 100644
--- a/src/nact/nact-add-capability-dialog.c
+++ b/src/nact/nact-add-capability-dialog.c
@@ -333,6 +333,10 @@ on_base_initialize_gtk_toplevel( NactAddCapabilityDialog *dialog, GtkDialog *top
selection = gtk_tree_view_get_selection( listview );
gtk_tree_selection_set_mode( selection, GTK_SELECTION_BROWSE );
+
+#if !GTK_CHECK_VERSION( 2,22,0 )
+ gtk_dialog_set_has_separator( toplevel, FALSE );
+#endif
}
}
diff --git a/src/nact/nact-add-capability.ui b/src/nact/nact-add-capability.ui
index 206252b..226e495 100644
--- a/src/nact/nact-add-capability.ui
+++ b/src/nact/nact-add-capability.ui
@@ -7,7 +7,6 @@
<property name="title" translatable="yes">Adding a new capability</property>
<property name="modal">True</property>
<property name="type_hint">dialog</property>
- <property name="has_separator">False</property>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox1">
<property name="visible">True</property>
diff --git a/src/nact/nact-add-scheme-dialog.c b/src/nact/nact-add-scheme-dialog.c
index a5d821d..ca7439e 100644
--- a/src/nact/nact-add-scheme-dialog.c
+++ b/src/nact/nact-add-scheme-dialog.c
@@ -272,6 +272,10 @@ on_base_initialize_gtk_toplevel( NactAddSchemeDialog *dialog, GtkDialog *topleve
listview = GTK_TREE_VIEW( base_window_get_widget( BASE_WINDOW( dialog ), "SchemesTreeView" ));
nact_schemes_list_create_model( listview, SCHEMES_LIST_FOR_ADD_FROM_DEFAULTS );
+
+#if !GTK_CHECK_VERSION( 2,22,0 )
+ gtk_dialog_set_has_separator( toplevel, FALSE );
+#endif
}
}
diff --git a/src/nact/nact-add-scheme.ui b/src/nact/nact-add-scheme.ui
index 46e1d3e..a2d06a0 100644
--- a/src/nact/nact-add-scheme.ui
+++ b/src/nact/nact-add-scheme.ui
@@ -7,7 +7,6 @@
<property name="title" translatable="yes">Adding a new scheme</property>
<property name="modal">True</property>
<property name="type_hint">dialog</property>
- <property name="has_separator">False</property>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox1">
<property name="visible">True</property>
diff --git a/src/nact/nact-export-ask.c b/src/nact/nact-export-ask.c
index 938ffe2..2d0d7b6 100644
--- a/src/nact/nact-export-ask.c
+++ b/src/nact/nact-export-ask.c
@@ -299,6 +299,10 @@ on_base_initialize_gtk_toplevel( NactExportAsk *editor, GtkDialog *toplevel )
nact_export_format_init_display( container,
NA_PIVOT( updater ), EXPORT_FORMAT_DISPLAY_ASK, !editor->private->preferences_locked );
+
+#if !GTK_CHECK_VERSION( 2,22,0 )
+ gtk_dialog_set_has_separator( toplevel, FALSE );
+#endif
}
}
diff --git a/src/nact/nact-icon-chooser.c b/src/nact/nact-icon-chooser.c
index 1699d57..4721490 100644
--- a/src/nact/nact-icon-chooser.c
+++ b/src/nact/nact-icon-chooser.c
@@ -328,6 +328,10 @@ on_base_initialize_gtk_toplevel( NactIconChooser *editor, GtkDialog *toplevel )
*/
GtkDialog *dialog = GTK_DIALOG( base_window_get_gtk_toplevel( BASE_WINDOW( editor )));
g_signal_connect( G_OBJECT( dialog ), "destroy", G_CALLBACK( on_destroy ), NULL );
+
+#if !GTK_CHECK_VERSION( 2,22,0 )
+ gtk_dialog_set_has_separator( toplevel, FALSE );
+#endif
}
}
diff --git a/src/nact/nact-icon-chooser.ui b/src/nact/nact-icon-chooser.ui
index 36ba444..e4f075b 100644
--- a/src/nact/nact-icon-chooser.ui
+++ b/src/nact/nact-icon-chooser.ui
@@ -9,7 +9,6 @@
<property name="window_position">center-on-parent</property>
<property name="destroy_with_parent">True</property>
<property name="type_hint">dialog</property>
- <property name="has_separator">False</property>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox1">
<property name="visible">True</property>
diff --git a/src/nact/nact-preferences-editor.c b/src/nact/nact-preferences-editor.c
index 20b4f62..5cf69e3 100644
--- a/src/nact/nact-preferences-editor.c
+++ b/src/nact/nact-preferences-editor.c
@@ -363,6 +363,10 @@ on_base_initialize_gtk_toplevel( NactPreferencesEditor *editor, GtkDialog *tople
listview = GTK_TREE_VIEW( base_window_get_widget( BASE_WINDOW( editor ), "ProvidersTreeView" ));
nact_providers_list_create_model( listview );
+
+#if !GTK_CHECK_VERSION( 2,22,0 )
+ gtk_dialog_set_has_separator( toplevel, FALSE );
+#endif
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]