[hamster-applet] fix bug 635203 - set prgname for GNOME 3
- From: Toms Baugis <tbaugis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hamster-applet] fix bug 635203 - set prgname for GNOME 3
- Date: Fri, 10 Feb 2012 20:34:22 +0000 (UTC)
commit 6e80b27ea6a31177e52abae2f41493929babe63d
Author: Colin Walters <walters verbum org>
Date: Fri Feb 10 22:34:11 2012 +0200
fix bug 635203 - set prgname for GNOME 3
src/hamster-applet | 4 ++++
src/hamster-time-tracker | 6 ++++++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/hamster-applet b/src/hamster-applet
index 5121ec5..f3b9b04 100755
--- a/src/hamster-applet
+++ b/src/hamster-applet
@@ -26,6 +26,7 @@ import os.path
import gnome
import logging
import gobject
+import glib
def applet_factory(applet, iid):
applet.connect("destroy", on_destroy)
@@ -52,6 +53,9 @@ def on_destroy(event):
gtk.main_quit()
if __name__ == "__main__":
+ # First thing, ensure our WM_CLASS is hamster-applet, which
+ # matches the .desktop file.
+ glib.set_prgname("hamster-applet")
gtk.gdk.threads_init()
parser = OptionParser(usage = "hamster-applet [OPTIONS]")
diff --git a/src/hamster-time-tracker b/src/hamster-time-tracker
index db8bb11..745ca68 100755
--- a/src/hamster-time-tracker
+++ b/src/hamster-time-tracker
@@ -23,6 +23,7 @@ import logging
import datetime as dt
import gtk, gobject
+import glib
import dbus, dbus.service, dbus.mainloop.glib
class ProjectHamsterStatusIcon(gtk.StatusIcon):
@@ -548,6 +549,11 @@ class ProjectHamster(object):
if __name__ == "__main__":
+ # First thing, ensure our WM_CLASS is hamster-applet, which
+ # matches the .desktop file.
+ glib.set_prgname("hamster-applet")
+
+
from hamster.lib import i18n
i18n.setup_i18n()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]