[gnome-documents] application: Make sure set_prgname() is called in every instance
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] application: Make sure set_prgname() is called in every instance
- Date: Thu, 15 Dec 2011 15:17:06 +0000 (UTC)
commit fd255438c2039a8b0d5fe8926a62d81c84df2ca9
Author: Florian MÃllner <fmuellner gnome org>
Date: Wed Dec 14 21:40:40 2011 +0100
application: Make sure set_prgname() is called in every instance
Calling GLib.set_prgname() in startup() means that the program
name is only set correctly in the primary instance - move the
call, so that all instances end up with the correct program
name.
src/application.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 1385adf..36c2f1d 100644
--- a/src/application.js
+++ b/src/application.js
@@ -62,6 +62,7 @@ Application.prototype = {
application_id: 'org.gnome.Documents',
flags: Gio.ApplicationFlags.HANDLES_COMMAND_LINE
});
+ GLib.set_prgname('gnome-documents');
this.application.connect('startup', Lang.bind(this, this._onStartup));
this.application.connect('command-line', Lang.bind(this, this._commandLine));
this.application.connect('activate', Lang.bind(this,
@@ -75,7 +76,6 @@ Application.prototype = {
Gettext.textdomain('gnome-documents');
String.prototype.format = Format.format;
- GLib.set_prgname('gnome-documents');
GtkClutter.init(null, null);
EvDoc.init();
Tweener.init();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]