summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-11-04 12:46:45 +0100
committerStefano Karapetsas <[email protected]>2013-11-04 12:46:45 +0100
commit76265841b74cad78a60e5f960d37beb8ba854e2e (patch)
tree17e830fe5d6acbbcc8e7497fa27dcdde42933f2c /plugins
parentc0bd4250ef3ceda457aaa492cc950b215f5db06e (diff)
downloadpluma-76265841b74cad78a60e5f960d37beb8ba854e2e.tar.bz2
pluma-76265841b74cad78a60e5f960d37beb8ba854e2e.tar.xz
Fix some deprecations
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/spell/pluma-spell-language-dialog.c2
-rwxr-xr-xplugins/time/pluma-time-plugin.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/plugins/spell/pluma-spell-language-dialog.c b/plugins/spell/pluma-spell-language-dialog.c
index f0fdfcaa..464a0cd7 100755
--- a/plugins/spell/pluma-spell-language-dialog.c
+++ b/plugins/spell/pluma-spell-language-dialog.c
@@ -139,7 +139,9 @@ create_dialog (PlumaSpellLanguageDialog *dlg,
NULL);
gtk_window_set_title (GTK_WINDOW (dlg), _("Set language"));
+#if !GTK_CHECK_VERSION (3, 0, 0)
gtk_dialog_set_has_separator (GTK_DIALOG (dlg), FALSE);
+#endif
gtk_window_set_modal (GTK_WINDOW (dlg), TRUE);
gtk_window_set_destroy_with_parent (GTK_WINDOW (dlg), TRUE);
diff --git a/plugins/time/pluma-time-plugin.c b/plugins/time/pluma-time-plugin.c
index a1b8e354..b275ea41 100755
--- a/plugins/time/pluma-time-plugin.c
+++ b/plugins/time/pluma-time-plugin.c
@@ -770,7 +770,9 @@ get_configure_dialog (PlumaTimePlugin *plugin)
}
gtk_window_set_resizable (GTK_WINDOW (dialog->dialog), FALSE);
+#if !GTK_CHECK_VERSION (3, 0, 0)
gtk_dialog_set_has_separator (GTK_DIALOG (dialog->dialog), FALSE);
+#endif
sf = get_selected_format (plugin);
create_formats_list (dialog->list, sf, plugin);
@@ -934,7 +936,9 @@ get_choose_format_dialog (GtkWindow *parent,
gtk_window_group_add_window (wg, GTK_WINDOW (err_dialog));
gtk_window_set_resizable (GTK_WINDOW (err_dialog), FALSE);
+#if !GTK_CHECK_VERSION (3, 0, 0)
gtk_dialog_set_has_separator (GTK_DIALOG (err_dialog), FALSE);
+#endif
gtk_dialog_set_default_response (GTK_DIALOG (err_dialog), GTK_RESPONSE_OK);
gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (err_dialog))),