diff options
author | Matthias Clasen <mclasen@redhat.com> | 2012-01-30 19:12:27 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-01-30 19:12:27 -0500 |
commit | 585a6652d5ca2123a15290ee3138fb8c36ad14cc (patch) | |
tree | da404859ae663f70bc2822383d386ff918c52409 /gtk/gtkdnd-quartz.c | |
parent | 7a080413add02b80c4217a9fbe81467017aae2a5 (diff) | |
download | gtk+-585a6652d5ca2123a15290ee3138fb8c36ad14cc.tar.gz |
Use G_SOURCE_CONTINUE/REMOVE
Now that GLib provides these macros, we should use them
to make the code more readable.
Diffstat (limited to 'gtk/gtkdnd-quartz.c')
-rw-r--r-- | gtk/gtkdnd-quartz.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkdnd-quartz.c b/gtk/gtkdnd-quartz.c index 6b3d123b18..a1754ae77d 100644 --- a/gtk/gtkdnd-quartz.c +++ b/gtk/gtkdnd-quartz.c @@ -1072,7 +1072,7 @@ gtk_drag_begin_idle (gpointer arg) [types release]; if ((nswindow = get_toplevel_nswindow (info->source_widget)) == NULL) - return FALSE; + return G_SOURCE_REMOVE; /* Ref the context. It's unreffed when the drag has been aborted */ g_object_ref (info->context); @@ -1084,7 +1084,7 @@ gtk_drag_begin_idle (gpointer arg) if (drag_image == NULL) { g_object_unref (info->context); - return FALSE; + return G_SOURCE_REMOVE; } point.x -= info->hot_x; @@ -1103,7 +1103,7 @@ gtk_drag_begin_idle (gpointer arg) [pool release]; - return FALSE; + return G_SOURCE_REMOVE; } /* Fake protocol to let us call GdkNSView gdkWindow without including * gdk/GdkNSView.h (which we can't because it pulls in the internal-only @@ -1858,7 +1858,7 @@ static gboolean drag_drop_finished_idle_cb (gpointer data) { gtk_drag_source_info_destroy (data); - return FALSE; + return G_SOURCE_REMOVE; } static void |