diff options
author | Stefano Karapetsas <[email protected]> | 2013-10-30 16:20:47 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-10-30 16:20:47 +0100 |
commit | e79794e482337c26cdeb3daff28c12ea8fb2f5d8 (patch) | |
tree | 163d27c54f085476eb89f2f31f3fde14d855ba7d /plugins/time | |
parent | 7f0ccea48196a0da9523db3d566ee8020cd742a1 (diff) | |
download | pluma-e79794e482337c26cdeb3daff28c12ea8fb2f5d8.tar.bz2 pluma-e79794e482337c26cdeb3daff28c12ea8fb2f5d8.tar.xz |
plugins: Add GTK3 support
Diffstat (limited to 'plugins/time')
-rwxr-xr-x | plugins/time/pluma-time-plugin.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/time/pluma-time-plugin.c b/plugins/time/pluma-time-plugin.c index 36a96352..a1b8e354 100755 --- a/plugins/time/pluma-time-plugin.c +++ b/plugins/time/pluma-time-plugin.c @@ -450,7 +450,11 @@ get_time (const gchar* format) } static void +#if GTK_CHECK_VERSION (3, 0, 0) +dialog_disposed (GObject *obj, gpointer dialog_pointer) +#else dialog_destroyed (GtkObject *obj, gpointer dialog_pointer) +#endif { pluma_debug (DEBUG_PLUGINS); @@ -830,8 +834,13 @@ get_configure_dialog (PlumaTimePlugin *plugin) G_CALLBACK (configure_dialog_button_toggled), dialog); g_signal_connect (dialog->dialog, +#if GTK_CHECK_VERSION (3, 0, 0) + "dispose", + G_CALLBACK (dialog_disposed), +#else "destroy", G_CALLBACK (dialog_destroyed), +#endif dialog); g_signal_connect (dialog->custom_entry, "changed", @@ -993,8 +1002,13 @@ get_choose_format_dialog (GtkWindow *parent, G_CALLBACK (choose_format_dialog_button_toggled), dialog); g_signal_connect (dialog->dialog, +#if GTK_CHECK_VERSION (3, 0, 0) + "dispose", + G_CALLBACK (dialog_disposed), +#else "destroy", G_CALLBACK (dialog_destroyed), +#endif dialog); g_signal_connect (dialog->custom_entry, "changed", |