diff options
Diffstat (limited to 'plugins/docinfo')
-rwxr-xr-x | plugins/docinfo/Makefile.am | 2 | ||||
-rwxr-xr-x | plugins/docinfo/pluma-docinfo-plugin.c | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/plugins/docinfo/Makefile.am b/plugins/docinfo/Makefile.am index 27290fc7..ec9fc410 100755 --- a/plugins/docinfo/Makefile.am +++ b/plugins/docinfo/Makefile.am @@ -1,7 +1,7 @@ # docinfo plugin plugindir = $(PLUMA_PLUGINS_LIBS_DIR) -INCLUDES = \ +AM_CPPFLAGS = \ -I$(top_srcdir) \ $(PLUMA_CFLAGS) \ $(WARN_CFLAGS) \ 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", |