[Xfce4-commits] <xfce4-notes-plugin:master> Fix sticky window not restored on true
Mike Massonnet
noreply at xfce.org
Sat Dec 26 16:08:02 CET 2009
Updating branch refs/heads/master
to 5091157c758f67fbdbe8a0c0a5bd1ade23bdebe1 (commit)
from 2c0d492dd960516210cbfa01dd7fb75add239fa4 (commit)
commit 5091157c758f67fbdbe8a0c0a5bd1ade23bdebe1
Author: Mike Massonnet <mmassonnet at xfce.org>
Date: Sat Dec 26 16:00:17 2009 +0100
Fix sticky window not restored on true
ChangeLog | 7 +++++++
lib/window.vala | 2 +-
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index dceea48..58a016f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2009-12-26 Mike Massonnet <mmassonnet at xfce.org>
+Fix sticky window not restored on true
+
+The last change "unsynced sticky bit" was incomplete. On window state event
+"sticky" set the internal bool value instead of toggling the menu item.
+
+2009-12-26 Mike Massonnet <mmassonnet at xfce.org>
+
Save notes before Xnp.Application destruction
The Xnp.Application.save_notes method emits a signal to tell the notes must be
diff --git a/lib/window.vala b/lib/window.vala
index 5feedb5..2237043 100644
--- a/lib/window.vala
+++ b/lib/window.vala
@@ -530,7 +530,7 @@ namespace Xnp {
}
if ((bool)(event.changed_mask & Gdk.WindowState.STICKY) &&
(bool)(get_flags () & Gtk.WidgetFlags.VISIBLE)) {
- this.mi_sticky.active = (bool)(event.new_window_state & Gdk.WindowState.STICKY);
+ this.sticky = (bool)((event.new_window_state & Gdk.WindowState.STICKY) != 0);
}
return false;
}
More information about the Xfce4-commits
mailing list