summaryrefslogtreecommitdiff
path: root/pluma/pluma-view.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-05-19 14:08:24 +0200
committerinfirit <[email protected]>2014-05-19 18:37:37 +0200
commit53be5f994d2c52142debdfdaf089ae077389cfbd (patch)
tree0fa3d45109140a79eccc2533daa39df3c33c1d50 /pluma/pluma-view.c
parentb3097ad42becf1943377a07919d7b9598386c13d (diff)
downloadpluma-53be5f994d2c52142debdfdaf089ae077389cfbd.tar.bz2
pluma-53be5f994d2c52142debdfdaf089ae077389cfbd.tar.xz
Replace GtkObject with Gobject in gtk+2 build
Diffstat (limited to 'pluma/pluma-view.c')
-rw-r--r--pluma/pluma-view.c19
1 files changed, 0 insertions, 19 deletions
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