summaryrefslogtreecommitdiff
path: root/portato/gui/gtk
diff options
context:
space:
mode:
authorNecoro <>2007-10-15 19:40:10 +0000
committerNecoro <>2007-10-15 19:40:10 +0000
commit14becdcb2d4c40becb3eb263aa3ff793d8aff3c9 (patch)
treea424028e4ec0b01162c236bd9aecb70e92fdd246 /portato/gui/gtk
parentfe2547bc8e7698846aa1894760f499a49b36adc9 (diff)
downloadportato-14becdcb2d4c40becb3eb263aa3ff793d8aff3c9.tar.gz
portato-14becdcb2d4c40becb3eb263aa3ff793d8aff3c9.tar.bz2
portato-14becdcb2d4c40becb3eb263aa3ff793d8aff3c9.zip
added tooltips, added ebuild.lang, restructured constants
Diffstat (limited to 'portato/gui/gtk')
-rw-r--r--portato/gui/gtk/basic.py4
-rw-r--r--portato/gui/gtk/windows.py7
2 files changed, 5 insertions, 6 deletions
diff --git a/portato/gui/gtk/basic.py b/portato/gui/gtk/basic.py
index 3737607..02caaf5 100644
--- a/portato/gui/gtk/basic.py
+++ b/portato/gui/gtk/basic.py
@@ -19,11 +19,11 @@ import gobject
from functools import wraps
-from ...constants import DATA_DIR, APP_ICON, APP, LOCALE_DIR
+from ...constants import TEMPLATE_DIR, APP_ICON, APP, LOCALE_DIR
gtk.glade.bindtextdomain (APP, LOCALE_DIR)
gtk.glade.textdomain (APP)
-GLADE_FILE = DATA_DIR+"portato.glade"
+GLADE_FILE = TEMPLATE_DIR+"portato.glade"
class Window (object):
def __init__ (self):
diff --git a/portato/gui/gtk/windows.py b/portato/gui/gtk/windows.py
index dc3dc35..456d962 100644
--- a/portato/gui/gtk/windows.py
+++ b/portato/gui/gtk/windows.py
@@ -28,7 +28,7 @@ from gettext import lgettext as _
# our backend stuff
from ... import listener, plugin
from ...helper import debug, warning, error, unique_array
-from ...constants import CONFIG_LOCATION, VERSION, APP_ICON
+from ...constants import CONFIG_LOCATION, VERSION, APP_ICON, DATA_DIR
from ...backend import flags, system
from ...backend.exceptions import PackageNotFoundException, BlockedException
@@ -390,10 +390,11 @@ class EbuildWindow (AbstractDialog):
self.view = gtk.TextView(self.buf)
else:
man = gtksourceview2.LanguageManager()
+ man.set_search_path(man.get_search_path()+[DATA_DIR])
language = man.get_language("ebuild")
if language is None:
- info(_("No ebuild language file installed. Falling back to shell."))
+ warning(_("No ebuild language file installed. Falling back to shell."))
language = man.get_language("sh")
# set buffer and view
@@ -713,10 +714,8 @@ class PackageTable:
if self.doEmerge:
# set emerge-button-label
if not self.actual_package().is_installed():
- self.emergeBtn.set_label(_("E_merge"))
self.unmergeBtn.set_sensitive(False)
else:
- self.emergeBtn.set_label(_("Re_merge"))
self.unmergeBtn.set_sensitive(True)
self.table.show_all()