diff options
-rwxr-xr-x | plugins/docinfo/pluma-docinfo-plugin.c | 12 | ||||
-rwxr-xr-x | plugins/sort/pluma-sort-plugin.c | 9 | ||||
-rwxr-xr-x | plugins/spell/pluma-spell-checker-dialog.c | 12 | ||||
-rwxr-xr-x | plugins/time/pluma-time-plugin.c | 14 | ||||
-rw-r--r-- | pluma/pluma-history-entry.c | 15 | ||||
-rw-r--r-- | pluma/pluma-notebook.c | 26 | ||||
-rw-r--r-- | pluma/pluma-view.c | 19 |
7 files changed, 2 insertions, 105 deletions
diff --git a/plugins/docinfo/pluma-docinfo-plugin.c b/plugins/docinfo/pluma-docinfo-plugin.c index 1cfe0238..520274bb 100755 --- a/plugins/docinfo/pluma-docinfo-plugin.c +++ b/plugins/docinfo/pluma-docinfo-plugin.c @@ -72,11 +72,7 @@ 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 +docinfo_dialog_destroy_cb (GObject *obj, WindowData *data) { pluma_debug (DEBUG_PLUGINS); @@ -146,14 +142,10 @@ 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", G_CALLBACK (docinfo_dialog_response_cb), diff --git a/plugins/sort/pluma-sort-plugin.c b/plugins/sort/pluma-sort-plugin.c index c4389ec0..a2dfc97c 100755 --- a/plugins/sort/pluma-sort-plugin.c +++ b/plugins/sort/pluma-sort-plugin.c @@ -92,11 +92,7 @@ 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); @@ -198,13 +194,8 @@ 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, diff --git a/plugins/spell/pluma-spell-checker-dialog.c b/plugins/spell/pluma-spell-checker-dialog.c index 5a253252..b41feaf7 100755 --- a/plugins/spell/pluma-spell-checker-dialog.c +++ b/plugins/spell/pluma-spell-checker-dialog.c @@ -109,11 +109,7 @@ static guint signals [LAST_SIGNAL] = { 0 }; G_DEFINE_TYPE(PlumaSpellCheckerDialog, pluma_spell_checker_dialog, GTK_TYPE_WINDOW) static void -#if GTK_CHECK_VERSION (3, 0,0) pluma_spell_checker_dialog_dispose (GObject *object) -#else -pluma_spell_checker_dialog_destroy (GtkObject *object) -#endif { PlumaSpellCheckerDialog *dlg = PLUMA_SPELL_CHECKER_DIALOG (object); @@ -129,11 +125,7 @@ pluma_spell_checker_dialog_destroy (GtkObject *object) dlg->misspelled_word = NULL; } -#if GTK_CHECK_VERSION (3, 0,0) G_OBJECT_CLASS (pluma_spell_checker_dialog_parent_class)->dispose (object); -#else - GTK_OBJECT_CLASS (pluma_spell_checker_dialog_parent_class)->destroy (object); -#endif } static void @@ -143,11 +135,7 @@ pluma_spell_checker_dialog_class_init (PlumaSpellCheckerDialogClass * klass) object_class = G_OBJECT_CLASS (klass); -#if GTK_CHECK_VERSION (3, 0, 0) object_class->dispose = pluma_spell_checker_dialog_dispose; -#else - GTK_OBJECT_CLASS (object_class)->destroy = pluma_spell_checker_dialog_destroy; -#endif signals[IGNORE] = g_signal_new ("ignore", diff --git a/plugins/time/pluma-time-plugin.c b/plugins/time/pluma-time-plugin.c index 006d441c..9a32d2a5 100755 --- a/plugins/time/pluma-time-plugin.c +++ b/plugins/time/pluma-time-plugin.c @@ -450,11 +450,7 @@ 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); @@ -833,13 +829,8 @@ 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", @@ -1000,13 +991,8 @@ 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", diff --git a/pluma/pluma-history-entry.c b/pluma/pluma-history-entry.c index 3f28e8ad..cc010185 100644 --- a/pluma/pluma-history-entry.c +++ b/pluma/pluma-history-entry.c @@ -120,20 +120,12 @@ pluma_history_entry_get_property (GObject *object, } static void -#if GTK_CHECK_VERSION (3, 0, 0) pluma_history_entry_dispose (GObject *object) -#else -pluma_history_entry_destroy (GtkObject *object) -#endif { pluma_history_entry_set_enable_completion (PLUMA_HISTORY_ENTRY (object), FALSE); -#if GTK_CHECK_VERSION (3, 0, 0) G_OBJECT_CLASS (pluma_history_entry_parent_class)->dispose (object); -#else - GTK_OBJECT_CLASS (pluma_history_entry_parent_class)->destroy (object); -#endif } static void @@ -158,18 +150,11 @@ static void pluma_history_entry_class_init (PlumaHistoryEntryClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); -#if !GTK_CHECK_VERSION (3, 0, 0) - GtkObjectClass *gtkobject_class = GTK_OBJECT_CLASS (klass); -#endif object_class->set_property = pluma_history_entry_set_property; object_class->get_property = pluma_history_entry_get_property; object_class->finalize = pluma_history_entry_finalize; -#if GTK_CHECK_VERSION (3, 0, 0) object_class->dispose = pluma_history_entry_dispose; -#else - gtkobject_class->destroy = pluma_history_entry_destroy; -#endif g_object_class_install_property (object_class, PROP_HISTORY_ID, diff --git a/pluma/pluma-notebook.c b/pluma/pluma-notebook.c index c792f4bb..8842cf02 100644 --- a/pluma/pluma-notebook.c +++ b/pluma/pluma-notebook.c @@ -100,11 +100,7 @@ enum static guint signals[LAST_SIGNAL] = { 0 }; static void -#if GTK_CHECK_VERSION (3, 0, 0) pluma_notebook_dispose (GObject *object) -#else -pluma_notebook_destroy (GtkObject *object) -#endif { PlumaNotebook *notebook = PLUMA_NOTEBOOK (object); @@ -124,28 +120,17 @@ pluma_notebook_destroy (GtkObject *object) notebook->priv->destroy_has_run = TRUE; } -#if GTK_CHECK_VERSION (3, 0, 0) G_OBJECT_CLASS (pluma_notebook_parent_class)->dispose (object); -#else - GTK_OBJECT_CLASS (pluma_notebook_parent_class)->destroy (object); -#endif } static void pluma_notebook_class_init (PlumaNotebookClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); -#if !GTK_CHECK_VERSION (3, 0, 0) - GtkObjectClass *gtkobject_class = GTK_OBJECT_CLASS (klass); -#endif GtkNotebookClass *notebook_class = GTK_NOTEBOOK_CLASS (klass); object_class->finalize = pluma_notebook_finalize; -#if GTK_CHECK_VERSION (3, 0, 0) object_class->dispose = pluma_notebook_dispose; -#else - gtkobject_class->destroy = pluma_notebook_destroy; -#endif notebook_class->change_current_page = pluma_notebook_change_current_page; @@ -261,13 +246,6 @@ find_tab_num_at_pos (PlumaNotebook *notebook, tab_pos = gtk_notebook_get_tab_pos (GTK_NOTEBOOK (notebook)); -#if !GTK_CHECK_VERSION (3, 0, 0) - if (GTK_NOTEBOOK (notebook)->first_tab == NULL) - { - return AFTER_ALL_TABS; - } -#endif - /* For some reason unfullscreen + quick click can cause a wrong click event to be reported to the tab */ if (!is_in_notebook_window (notebook, abs_x, abs_y)) @@ -689,11 +667,7 @@ pluma_notebook_new (void) static void pluma_notebook_switch_page_cb (GtkNotebook *notebook, -#if GTK_CHECK_VERSION (3, 0, 0) GtkWidget *page, -#else - GtkNotebookPage *page, -#endif guint page_num, gpointer data) { diff --git a/pluma/pluma-view.c b/pluma/pluma-view.c index 0f95a08c..d4fe14eb 100644 --- a/pluma/pluma-view.c +++ b/pluma/pluma-view.c @@ -108,11 +108,7 @@ struct _PlumaViewPrivate /* The search entry completion is shared among all the views */ GtkListStore *search_completion_model = NULL; -#if GTK_CHECK_VERSION (3, 0, 0) static void pluma_view_dispose (GObject *object); -#else -static void pluma_view_destroy (GtkObject *object); -#endif static void pluma_view_finalize (GObject *object); static gint pluma_view_focus_out (GtkWidget *widget, GdkEventFocus *event); @@ -198,19 +194,12 @@ static void pluma_view_class_init (PlumaViewClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); -#if !GTK_CHECK_VERSION (3, 0, 0) - GtkObjectClass *gtkobject_class = GTK_OBJECT_CLASS (klass); -#endif GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); GtkTextViewClass *text_view_class = GTK_TEXT_VIEW_CLASS (klass); GtkBindingSet *binding_set; -#if GTK_CHECK_VERSION (3, 0, 0) object_class->dispose = pluma_view_dispose; -#else - gtkobject_class->destroy = pluma_view_destroy; -#endif object_class->finalize = pluma_view_finalize; widget_class->focus_out_event = pluma_view_focus_out; @@ -419,11 +408,7 @@ pluma_view_init (PlumaView *view) } static void -#if GTK_CHECK_VERSION (3, 0, 0) pluma_view_dispose (GObject *object) -#else -pluma_view_destroy (GtkObject *object) -#endif { PlumaView *view; @@ -448,11 +433,7 @@ pluma_view_destroy (GtkObject *object) current_buffer_removed (view); g_signal_handlers_disconnect_by_func (view, on_notify_buffer_cb, NULL); -#if GTK_CHECK_VERSION (3, 0, 0) (* G_OBJECT_CLASS (pluma_view_parent_class)->dispose) (object); -#else - (* GTK_OBJECT_CLASS (pluma_view_parent_class)->destroy) (object); -#endif } static void |