summaryrefslogtreecommitdiff
path: root/plugins/docinfo/pluma-docinfo-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/docinfo/pluma-docinfo-plugin.c
parent7f0ccea48196a0da9523db3d566ee8020cd742a1 (diff)
downloadpluma-e79794e482337c26cdeb3daff28c12ea8fb2f5d8.tar.bz2
pluma-e79794e482337c26cdeb3daff28c12ea8fb2f5d8.tar.xz
plugins: Add GTK3 support
Diffstat (limited to 'plugins/docinfo/pluma-docinfo-plugin.c')
-rwxr-xr-xplugins/docinfo/pluma-docinfo-plugin.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/docinfo/pluma-docinfo-plugin.c b/plugins/docinfo/pluma-docinfo-plugin.c
index 454a7c6a..1cfe0238 100755
--- a/plugins/docinfo/pluma-docinfo-plugin.c
+++ b/plugins/docinfo/pluma-docinfo-plugin.c
@@ -72,7 +72,11 @@ static void docinfo_dialog_response_cb (GtkDialog *widget,
PlumaWindow *window);
static void
+#if GTK_CHECK_VERSION (3, 0, 0)
+docinfo_dialog_dispose_cb (GObject *obj,
+#else
docinfo_dialog_destroy_cb (GtkObject *obj,
+#endif
WindowData *data)
{
pluma_debug (DEBUG_PLUGINS);
@@ -142,8 +146,13 @@ get_docinfo_dialog (PlumaWindow *window,
GTK_WINDOW (window));
g_signal_connect (dialog->dialog,
+#if GTK_CHECK_VERSION (3, 0, 0)
+ "dispose",
+ G_CALLBACK (docinfo_dialog_dispose_cb),
+#else
"destroy",
G_CALLBACK (docinfo_dialog_destroy_cb),
+#endif
data);
g_signal_connect (dialog->dialog,
"response",