[24365] in Source-Commits
/svn/athena r23963 - in trunk/athena/bin/bugme: . debian
daemon@ATHENA.MIT.EDU (Robert A Basch)
Thu Aug 13 15:17:52 2009
Date: Thu, 13 Aug 2009 15:17:43 -0400
From: Robert A Basch <rbasch@MIT.EDU>
Message-Id: <200908131917.n7DJHhQB014111@drugstore.mit.edu>
To: source-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Author: rbasch
Date: 2009-08-13 15:17:43 -0400 (Thu, 13 Aug 2009)
New Revision: 23963
Modified:
trunk/athena/bin/bugme/bugme
trunk/athena/bin/bugme/bugme.glade
trunk/athena/bin/bugme/debian/changelog
Log:
In bugme:
* Add a handler for timer window visibility events, to raise the
window when it has been obscured (e.g. by Nautilus when it takes
over the desktop). (Trac: #324)
* Change the timer window from a popup to a normal toplevel window,
but disallowing input focus, so that it does not obscure menu
items.
Modified: trunk/athena/bin/bugme/bugme
===================================================================
--- trunk/athena/bin/bugme/bugme 2009-08-13 06:03:10 UTC (rev 23962)
+++ trunk/athena/bin/bugme/bugme 2009-08-13 19:17:43 UTC (rev 23963)
@@ -36,6 +36,9 @@
sys.exit(255)
self.startTime = int(time.time())
self.timerWindow = self.xml.get_widget('TimerWindow')
+ self.timerWindow.connect("visibility_notify_event",
+ self.visibility_event_handler)
+ self.timerWindow.set_events(gtk.gdk.VISIBILITY_NOTIFY_MASK)
self.nagDialog = self.xml.get_widget('NagDialog')
self.nagLabel = self.xml.get_widget('NagLabel')
self.elapsed_label = self.xml.get_widget('ElapsedLabel')
@@ -93,7 +96,12 @@
def on_dialog_response(self, dialog, response_id):
self.nagDialog.hide()
+ def visibility_event_handler(self, widget, event):
+ if event.state != gtk.gdk.VISIBILITY_UNOBSCURED:
+ self.timerWindow.present()
+ return True
+
if __name__ == '__main__':
if not os.access(gladeFile, os.R_OK):
print 'error: Unable to read glade file "' + gladeFile + '"'
Modified: trunk/athena/bin/bugme/bugme.glade
===================================================================
--- trunk/athena/bin/bugme/bugme.glade 2009-08-13 06:03:10 UTC (rev 23962)
+++ trunk/athena/bin/bugme/bugme.glade 2009-08-13 19:17:43 UTC (rev 23963)
@@ -4,9 +4,9 @@
<glade-interface>
<widget class="GtkWindow" id="TimerWindow">
- <property name="visible">True</property>
+ <property name="visible">False</property>
<property name="title" translatable="yes">Athena Quickstation</property>
- <property name="type">GTK_WINDOW_POPUP</property>
+ <property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
<property name="default_width">200</property>
@@ -18,7 +18,8 @@
<property name="skip_pager_hint">True</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
- <property name="focus_on_map">True</property>
+ <property name="focus_on_map">False</property>
+ <property name="accept_focus">False</property>
<property name="urgency_hint">False</property>
<child>
Modified: trunk/athena/bin/bugme/debian/changelog
===================================================================
--- trunk/athena/bin/bugme/debian/changelog 2009-08-13 06:03:10 UTC (rev 23962)
+++ trunk/athena/bin/bugme/debian/changelog 2009-08-13 19:17:43 UTC (rev 23963)
@@ -1,3 +1,14 @@
+debathena-bugme (10.0.1-0debathena1) unstable; urgency=low
+
+ * Add a handler for timer window visibility events, to raise the
+ window when it has been obscured (e.g. by Nautilus when it takes
+ over the desktop). (Trac: #324)
+ * Change the timer window from a popup to a normal toplevel window,
+ but disallowing input focus, so that it does not obscure menu
+ items.
+
+ -- Robert Basch <rbasch@mit.edu> Thu, 13 Aug 2009 14:31:22 -0400
+
debathena-bugme (10.0.0-0debathena1) unstable; urgency=low
* Initial release.