diff options
-rw-r--r-- | cut-n-paste/toolbar-editor/egg-editable-toolbar.c | 4 | ||||
-rw-r--r-- | cut-n-paste/toolbar-editor/egg-toolbar-editor.c | 4 | ||||
-rw-r--r-- | libview/ev-annotation-window.c | 4 | ||||
-rw-r--r-- | libview/ev-view-presentation.c | 4 | ||||
-rw-r--r-- | libview/ev-view.c | 4 |
5 files changed, 20 insertions, 0 deletions
diff --git a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c index c290ef56..a468cccb 100644 --- a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c +++ b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c @@ -35,6 +35,10 @@ static GdkPixbuf * new_separator_pixbuf (void); #define EGG_ITEM_NAME "egg-item-name" #define STOCK_DRAG_MODE "stock_drag-mode" +#if GTK_CHECK_VERSION (3, 0, 0) +#define gdk_cursor_unref g_object_unref +#endif + static const GtkTargetEntry dest_drag_types[] = { {EGG_TOOLBAR_ITEM_TYPE, GTK_TARGET_SAME_APP, 0}, }; diff --git a/cut-n-paste/toolbar-editor/egg-toolbar-editor.c b/cut-n-paste/toolbar-editor/egg-toolbar-editor.c index 5e75ba82..8bc6110c 100644 --- a/cut-n-paste/toolbar-editor/egg-toolbar-editor.c +++ b/cut-n-paste/toolbar-editor/egg-toolbar-editor.c @@ -28,6 +28,10 @@ #include <gtk/gtk.h> #include <glib/gi18n.h> +#if GTK_CHECK_VERSION (3, 0, 0) +#define gdk_cursor_unref g_object_unref +#endif + static const GtkTargetEntry dest_drag_types[] = { {EGG_TOOLBAR_ITEM_TYPE, GTK_TARGET_SAME_APP, 0}, }; diff --git a/libview/ev-annotation-window.c b/libview/ev-annotation-window.c index be91cdc6..7bf8802c 100644 --- a/libview/ev-annotation-window.c +++ b/libview/ev-annotation-window.c @@ -28,6 +28,10 @@ #include "ev-view-marshal.h" #include "ev-document-misc.h" +#if GTK_CHECK_VERSION (3, 0, 0) +#define gdk_cursor_unref g_object_unref +#endif + enum { PROP_0, PROP_ANNOTATION, diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c index ca45489c..7558f92c 100644 --- a/libview/ev-view-presentation.c +++ b/libview/ev-view-presentation.c @@ -32,6 +32,10 @@ #include "ev-view-cursor.h" #include "ev-page-cache.h" +#if GTK_CHECK_VERSION (3, 0, 0) +#define gdk_cursor_unref g_object_unref +#endif + enum { PROP_0, PROP_DOCUMENT, diff --git a/libview/ev-view.c b/libview/ev-view.c index 13ad9555..f19b40d0 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -45,6 +45,10 @@ #include "ev-view-private.h" #include "ev-view-type-builtins.h" +#if GTK_CHECK_VERSION (3, 0, 0) +#define gdk_cursor_unref g_object_unref +#endif + #define EV_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_VIEW, EvViewClass)) #define EV_IS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EV_TYPE_VIEW)) #define EV_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EV_TYPE_VIEW, EvViewClass)) |