summaryrefslogtreecommitdiff
path: root/src/eom-thumb-view.c
diff options
context:
space:
mode:
authorLaszlo Boros <[email protected]>2013-08-18 01:26:29 +0200
committerStefano Karapetsas <[email protected]>2013-10-17 12:28:11 +0200
commit1e9954cbc51fc67b1e34cd6dd8f0a77a360eb4c8 (patch)
tree0051295b73ee5aa6caa0210e6a3ac7af11edf674 /src/eom-thumb-view.c
parent7a364394044201fbd23a9fc5e152f512d24fd876 (diff)
downloadeom-1e9954cbc51fc67b1e34cd6dd8f0a77a360eb4c8.tar.bz2
eom-1e9954cbc51fc67b1e34cd6dd8f0a77a360eb4c8.tar.xz
GTK3 support
Diffstat (limited to 'src/eom-thumb-view.c')
-rw-r--r--src/eom-thumb-view.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/eom-thumb-view.c b/src/eom-thumb-view.c
index 9c1a30e..78fbe99 100644
--- a/src/eom-thumb-view.c
+++ b/src/eom-thumb-view.c
@@ -70,6 +70,16 @@ eom_thumb_view_finalize (GObject *object)
G_OBJECT_CLASS (eom_thumb_view_parent_class)->finalize (object);
}
+#if GTK_CHECK_VERSION(3, 0, 0)
+eom_thumb_view_dispose (GObject *object)
+{
+ EomThumbView *thumbview;
+ g_return_if_fail (EOM_IS_THUMB_VIEW (object));
+ thumbview = EOM_THUMB_VIEW (object);
+
+ G_OBJECT_CLASS (eom_thumb_view_parent_class)->dispose (object);
+}
+#else
static void
eom_thumb_view_destroy (GtkObject *object)
{
@@ -79,15 +89,23 @@ eom_thumb_view_destroy (GtkObject *object)
GTK_OBJECT_CLASS (eom_thumb_view_parent_class)->destroy (object);
}
+#endif
static void
eom_thumb_view_class_init (EomThumbViewClass *class)
{
+ #if GTK_CHECK_VERSION(3, 0, 0)
+ GObjectClass *gobject_class = G_OBJECT_CLASS (class);
+
+ gobject_class->constructed = eom_thumb_view_init;
+ gobject_class->dispose = eom_thumb_view_dispose;
+ #else
GObjectClass *gobject_class = G_OBJECT_CLASS (class);
GtkObjectClass *object_class = GTK_OBJECT_CLASS (class);
gobject_class->finalize = eom_thumb_view_finalize;
object_class->destroy = eom_thumb_view_destroy;
+ #endif
g_type_class_add_private (class, sizeof (EomThumbViewPrivate));
}
@@ -225,7 +243,11 @@ thumbview_on_adjustment_changed_cb (EomThumbView *thumbview,
static void
thumbview_on_parent_set_cb (GtkWidget *widget,
+ #if GTK_CHECK_VERSION(3, 0, 0)
+ GtkWidget *old_parent,
+ #else
GtkObject *old_parent,
+ #endif
gpointer user_data)
{
EomThumbView *thumbview = EOM_THUMB_VIEW (widget);