summaryrefslogtreecommitdiff
path: root/plugins/sort
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sort')
-rwxr-xr-xplugins/sort/Makefile.am2
-rwxr-xr-xplugins/sort/pluma-sort-plugin.c9
2 files changed, 10 insertions, 1 deletions
diff --git a/plugins/sort/Makefile.am b/plugins/sort/Makefile.am
index 52274688..749be6bc 100755
--- a/plugins/sort/Makefile.am
+++ b/plugins/sort/Makefile.am
@@ -1,7 +1,7 @@
# sort plugin
plugindir = $(PLUMA_PLUGINS_LIBS_DIR)
-INCLUDES = \
+AM_CPPFLAGS = \
-I$(top_srcdir) \
$(PLUMA_CFLAGS) \
$(WARN_CFLAGS) \
diff --git a/plugins/sort/pluma-sort-plugin.c b/plugins/sort/pluma-sort-plugin.c
index 83ffc18b..c4389ec0 100755
--- a/plugins/sort/pluma-sort-plugin.c
+++ b/plugins/sort/pluma-sort-plugin.c
@@ -92,7 +92,11 @@ static const GtkActionEntry action_entries[] =
};
static void
+#if GTK_CHECK_VERSION (3, 0, 0)
+sort_dialog_dispose (GObject *obj,
+#else
sort_dialog_destroy (GtkObject *obj,
+#endif
gpointer dialog_pointer)
{
pluma_debug (DEBUG_PLUGINS);
@@ -194,8 +198,13 @@ get_sort_dialog (ActionData *action_data)
GTK_RESPONSE_OK);
g_signal_connect (dialog->dialog,
+#if GTK_CHECK_VERSION (3, 0, 0)
+ "dispose",
+ G_CALLBACK (sort_dialog_dispose),
+#else
"destroy",
G_CALLBACK (sort_dialog_destroy),
+#endif
dialog);
g_signal_connect (dialog->dialog,