[gnome-boxes] Do not mix draw_id and cursor_id
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Do not mix draw_id and cursor_id
- Date: Wed, 22 Feb 2012 23:49:55 +0000 (UTC)
commit e1015a6c21036a76111a912c01c18f48e0809d32
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Tue Feb 21 02:08:54 2012 +0100
Do not mix draw_id and cursor_id
This avoid warnings if disconnecting wrong handler in remove_display()
https://bugzilla.gnome.org/show_bug.cgi?id=670539
src/display-page.vala | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/display-page.vala b/src/display-page.vala
index 9c2a9ef..b6f776f 100644
--- a/src/display-page.vala
+++ b/src/display-page.vala
@@ -175,8 +175,9 @@ private class Boxes.DisplayPage: GLib.Object {
return false;
});
- cursor_id = display.draw.connect (() => {
- display.disconnect (cursor_id);
+ ulong draw_id = 0;
+ draw_id = display.draw.connect (() => {
+ display.disconnect (draw_id);
cursor_id = display.get_window ().notify["cursor"].connect (() => {
event_box.get_window ().set_cursor (display.get_window ().cursor);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]