summaryrefslogtreecommitdiff
path: root/plugins/sort/pluma-sort-plugin.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-10-30 16:20:47 +0100
committerStefano Karapetsas <[email protected]>2013-10-30 16:20:47 +0100
commite79794e482337c26cdeb3daff28c12ea8fb2f5d8 (patch)
tree163d27c54f085476eb89f2f31f3fde14d855ba7d /plugins/sort/pluma-sort-plugin.c
parent7f0ccea48196a0da9523db3d566ee8020cd742a1 (diff)
downloadpluma-e79794e482337c26cdeb3daff28c12ea8fb2f5d8.tar.bz2
pluma-e79794e482337c26cdeb3daff28c12ea8fb2f5d8.tar.xz
plugins: Add GTK3 support
Diffstat (limited to 'plugins/sort/pluma-sort-plugin.c')
-rwxr-xr-xplugins/sort/pluma-sort-plugin.c9
1 files changed, 9 insertions, 0 deletions
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,