[gnome-tweak-tool] app: Use GLib.set_application_name()
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] app: Use GLib.set_application_name()
- Date: Fri, 2 Sep 2016 13:22:37 +0000 (UTC)
commit 15dc6b452480cf7377fce693570a849ea8438d52
Author: Rui Matos <tiagomatos gmail com>
Date: Fri Sep 2 15:14:10 2016 +0200
app: Use GLib.set_application_name()
This ensures that both the about dialog and the main window have the
title set.
https://bugzilla.gnome.org/show_bug.cgi?id=768435
gtweak/app.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtweak/app.py b/gtweak/app.py
index 18ab1ed..2bb848b 100644
--- a/gtweak/app.py
+++ b/gtweak/app.py
@@ -19,6 +19,7 @@ import os.path
from gi.repository import Gtk
from gi.repository import Gio
+from gi.repository import GLib
import gtweak
from gtweak.tweakmodel import TweakModel
@@ -30,6 +31,7 @@ from gtweak.utils import DisableExtension
class GnomeTweakTool(Gtk.Application):
def __init__(self):
+ GLib.set_application_name(_("GNOME Tweak Tool"))
Gtk.Application.__init__(self,application_id="org.gnome.TweakTool")
self.win = None
@@ -90,8 +92,6 @@ class GnomeTweakTool(Gtk.Application):
def about_cb(self, action, parameter):
aboutdialog = Gtk.AboutDialog()
- aboutdialog.set_title(_("About GNOME Tweak Tool"))
- aboutdialog.set_program_name(_("GNOME Tweak Tool"))
_shell = GnomeShellFactory().get_shell()
if _shell is not None:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]