[gthumb] removed use of gdk_cursor_ref/unref
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] removed use of gdk_cursor_ref/unref
- Date: Tue, 25 Oct 2011 14:54:04 +0000 (UTC)
commit eb198ffba4db30ef3508ba43b37ae46b7c8b331e
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Oct 16 13:22:55 2011 +0200
removed use of gdk_cursor_ref/unref
extensions/burn_disc/gth-burn-task.c | 2 +-
extensions/file_tools/gth-image-line-tool.c | 2 +-
extensions/file_tools/gth-image-rotator.c | 6 +++---
extensions/gstreamer_tools/gth-media-viewer-page.c | 4 ++--
gthumb/gth-image-dragger.c | 4 ++--
gthumb/gth-image-navigator.c | 2 +-
gthumb/gth-image-selector.c | 4 ++--
gthumb/gth-image-viewer.c | 14 +++++++-------
8 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/extensions/burn_disc/gth-burn-task.c b/extensions/burn_disc/gth-burn-task.c
index 9e8e526..ac2e898 100644
--- a/extensions/burn_disc/gth-burn-task.c
+++ b/extensions/burn_disc/gth-burn-task.c
@@ -216,7 +216,7 @@ burn_content_to_disc (GthBurnTask *task)
cursor = gdk_cursor_new (GDK_WATCH);
gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (task->priv->browser)), cursor);
- gdk_cursor_unref (cursor);
+ g_object_unref (cursor);
if (! initialized) {
brasero_media_library_start ();
diff --git a/extensions/file_tools/gth-image-line-tool.c b/extensions/file_tools/gth-image-line-tool.c
index 4c8e26a..f08a5e6 100644
--- a/extensions/file_tools/gth-image-line-tool.c
+++ b/extensions/file_tools/gth-image-line-tool.c
@@ -81,7 +81,7 @@ gth_image_line_tool_set_viewer (GthImageViewerTool *base,
cursor = gdk_cursor_new (GDK_CROSSHAIR);
gth_image_viewer_set_cursor (self->priv->viewer, cursor);
- gdk_cursor_unref (cursor);
+ g_object_unref (cursor);
}
diff --git a/extensions/file_tools/gth-image-rotator.c b/extensions/file_tools/gth-image-rotator.c
index bd349e5..b5e7737 100644
--- a/extensions/file_tools/gth-image-rotator.c
+++ b/extensions/file_tools/gth-image-rotator.c
@@ -93,7 +93,7 @@ gth_image_rotator_set_viewer (GthImageViewerTool *base,
cursor = gdk_cursor_new (GDK_LEFT_PTR);
gth_image_viewer_set_cursor (self->priv->viewer, cursor);
- gdk_cursor_unref (cursor);
+ g_object_unref (cursor);
}
@@ -465,7 +465,7 @@ gth_image_rotator_button_release (GthImageViewerTool *base,
cursor = gdk_cursor_new (GDK_LEFT_PTR);
gth_image_viewer_set_cursor (self->priv->viewer, cursor);
- gdk_cursor_unref (cursor);
+ g_object_unref (cursor);
gtk_widget_queue_draw (GTK_WIDGET (self->priv->viewer));
@@ -544,7 +544,7 @@ gth_image_rotator_motion_notify (GthImageViewerTool *base,
cursor = gdk_cursor_new_from_name (gtk_widget_get_display (GTK_WIDGET (self->priv->viewer)), "grabbing");
gth_image_viewer_set_cursor (self->priv->viewer, cursor);
if (cursor != NULL)
- gdk_cursor_unref (cursor);
+ g_object_unref (cursor);
}
if (self->priv->dragging) {
diff --git a/extensions/gstreamer_tools/gth-media-viewer-page.c b/extensions/gstreamer_tools/gth-media-viewer-page.c
index e4b5ff5..e6c72cd 100644
--- a/extensions/gstreamer_tools/gth-media-viewer-page.c
+++ b/extensions/gstreamer_tools/gth-media-viewer-page.c
@@ -156,12 +156,12 @@ video_area_unrealize_cb (GtkWidget *widget,
GthMediaViewerPage *self = user_data;
if (self->priv->cursor) {
- gdk_cursor_unref (self->priv->cursor);
+ g_object_unref (self->priv->cursor);
self->priv->cursor = NULL;
}
if (self->priv->cursor_void) {
- gdk_cursor_unref (self->priv->cursor_void);
+ g_object_unref (self->priv->cursor_void);
self->priv->cursor_void = NULL;
}
diff --git a/gthumb/gth-image-dragger.c b/gthumb/gth-image-dragger.c
index 9fd1ae5..f164db8 100644
--- a/gthumb/gth-image-dragger.c
+++ b/gthumb/gth-image-dragger.c
@@ -105,7 +105,7 @@ _gth_image_dragger_update_cursor (GthImageDragger *self)
cursor = gdk_cursor_new (GDK_LEFT_PTR);
gth_image_viewer_set_cursor (self->priv->viewer, cursor);
- gdk_cursor_unref (cursor);
+ g_object_unref (cursor);
}
@@ -206,7 +206,7 @@ gth_image_dragger_button_press (GthImageViewerTool *self,
event->time);
if (cursor != NULL)
- gdk_cursor_unref (cursor);
+ g_object_unref (cursor);
if (retval != 0)
return FALSE;
diff --git a/gthumb/gth-image-navigator.c b/gthumb/gth-image-navigator.c
index 3e4c2c7..ea52175 100644
--- a/gthumb/gth-image-navigator.c
+++ b/gthumb/gth-image-navigator.c
@@ -285,7 +285,7 @@ nav_window_grab_pointer (NavigatorPopup *nav_popup)
gtk_widget_get_window (nav_popup->preview),
cursor,
0);
- gdk_cursor_unref (cursor);
+ g_object_unref (cursor);
/* Capture keyboard events. */
diff --git a/gthumb/gth-image-selector.c b/gthumb/gth-image-selector.c
index 8e5cd69..daa1429 100644
--- a/gthumb/gth-image-selector.c
+++ b/gthumb/gth-image-selector.c
@@ -80,7 +80,7 @@ event_area_unref (EventArea *event_area)
return;
if (event_area->cursor != NULL)
- gdk_cursor_unref (event_area->cursor);
+ g_object_unref (event_area->cursor);
g_free (event_area);
}
@@ -564,7 +564,7 @@ gth_image_selector_unrealize (GthImageViewerTool *base)
GthImageSelector *self = GTH_IMAGE_SELECTOR (base);
if (self->priv->default_cursor != NULL) {
- gdk_cursor_unref (self->priv->default_cursor);
+ g_object_unref (self->priv->default_cursor);
self->priv->default_cursor = NULL;
}
diff --git a/gthumb/gth-image-viewer.c b/gthumb/gth-image-viewer.c
index 68766fc..9e14e4c 100644
--- a/gthumb/gth-image-viewer.c
+++ b/gthumb/gth-image-viewer.c
@@ -161,10 +161,10 @@ gth_image_viewer_finalize (GObject *object)
g_source_remove (self->priv->anim_id);
if (self->priv->cursor != NULL)
- gdk_cursor_unref (self->priv->cursor);
+ g_object_unref (self->priv->cursor);
if (self->priv->cursor_void != NULL)
- gdk_cursor_unref (self->priv->cursor_void);
+ g_object_unref (self->priv->cursor_void);
if (self->hadj != NULL) {
g_signal_handlers_disconnect_by_data (G_OBJECT (self->hadj), self);
@@ -400,11 +400,11 @@ gth_image_viewer_unrealize (GtkWidget *widget)
self = GTH_IMAGE_VIEWER (widget);
if (self->priv->cursor) {
- gdk_cursor_unref (self->priv->cursor);
+ g_object_unref (self->priv->cursor);
self->priv->cursor = NULL;
}
if (self->priv->cursor_void) {
- gdk_cursor_unref (self->priv->cursor_void);
+ g_object_unref (self->priv->cursor_void);
self->priv->cursor_void = NULL;
}
@@ -2476,16 +2476,16 @@ gth_image_viewer_set_cursor (GthImageViewer *self,
GdkCursor *cursor)
{
if (cursor != NULL)
- gdk_cursor_ref (cursor);
+ g_object_ref (cursor);
if (self->priv->cursor != NULL) {
- gdk_cursor_unref (self->priv->cursor);
+ g_object_unref (self->priv->cursor);
self->priv->cursor = NULL;
}
if (cursor != NULL)
self->priv->cursor = cursor;
else
- self->priv->cursor = gdk_cursor_ref (self->priv->cursor_void);
+ self->priv->cursor = g_object_ref (self->priv->cursor_void);
if (! gtk_widget_get_realized (GTK_WIDGET (self)))
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]