diff options
author | Danny Kukawka <danny.kukawka@web.de> | 2005-11-08 15:47:36 +0000 |
---|---|---|
committer | Danny Kukawka <danny.kukawka@web.de> | 2005-11-08 15:47:36 +0000 |
commit | ac5deac7b3fec29621e1d82210151c53e953f74c (patch) | |
tree | a57e49ba1fb37a2490774e410dae971e060c5995 /tools/device-manager | |
parent | cdf361140200824ad6ebb911ae8909e096b83124 (diff) |
fixed typo from fd.o bug #2115
fixed fd.o bug #4644 and fixed typo in spec
slightly adopted fix from fd.o bug #3954 from Benjamin Berg
<benjamin@sipsolutions.net> to make all fields in hal-device-manager
selectable to copy the content
fixed fd.o bug #2121 with patch from #4266 (Young-Ho, Cha,
<ganadist@chollian.net>) to enable translation for hal-device-manager
fixed fd.o bug #2850, removed option from the help text.
Diffstat (limited to 'tools/device-manager')
-rw-r--r-- | tools/device-manager/DeviceManager.py | 11 | ||||
-rw-r--r-- | tools/device-manager/hal-device-manager.glade | 48 | ||||
-rw-r--r-- | tools/device-manager/hal-device-manager.in | 2 |
3 files changed, 41 insertions, 20 deletions
diff --git a/tools/device-manager/DeviceManager.py b/tools/device-manager/DeviceManager.py index 6b9d54c2..b5fec40e 100644 --- a/tools/device-manager/DeviceManager.py +++ b/tools/device-manager/DeviceManager.py @@ -465,10 +465,13 @@ class DeviceManager(LibGladeApplication): cols = prop_tree_view.get_columns() for cr in cols: prop_tree_view.remove_column(cr) - - column0 = gtk.TreeViewColumn("Key", gtk.CellRendererText(), text=0) - column1 = gtk.TreeViewColumn("Type", gtk.CellRendererText(), text=1) - column2 = gtk.TreeViewColumn("Value", gtk.CellRendererText(), text=2) + + cell_renderer = gtk.CellRendererText() + cell_renderer.set_property("editable", True) + + column0 = gtk.TreeViewColumn("Key", cell_renderer, text=0) + column1 = gtk.TreeViewColumn("Type", cell_renderer, text=1) + column2 = gtk.TreeViewColumn("Value", cell_renderer, text=2) prop_tree_view.append_column(column0) prop_tree_view.append_column(column1) prop_tree_view.append_column(column2) diff --git a/tools/device-manager/hal-device-manager.glade b/tools/device-manager/hal-device-manager.glade index e691c3fd..bbf6714f 100644 --- a/tools/device-manager/hal-device-manager.glade +++ b/tools/device-manager/hal-device-manager.glade @@ -221,12 +221,13 @@ <property name="width_request">250</property> <property name="height_request">16</property> <property name="visible">True</property> + <property name="can_focus">True</property> <property name="label" translatable="yes">Device Name</property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">True</property> - <property name="selectable">False</property> + <property name="selectable">True</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> @@ -273,12 +274,13 @@ <property name="width_request">250</property> <property name="height_request">16</property> <property name="visible">True</property> + <property name="can_focus">True</property> <property name="label" translatable="yes">Status</property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">True</property> - <property name="selectable">False</property> + <property name="selectable">True</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> @@ -299,12 +301,13 @@ <property name="width_request">250</property> <property name="height_request">16</property> <property name="visible">True</property> + <property name="can_focus">True</property> <property name="label" translatable="yes">Bus Type</property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">True</property> - <property name="selectable">False</property> + <property name="selectable">True</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> @@ -351,12 +354,13 @@ <property name="width_request">250</property> <property name="height_request">16</property> <property name="visible">True</property> + <property name="can_focus">True</property> <property name="label" translatable="yes">Device Type</property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">True</property> - <property name="selectable">False</property> + <property name="selectable">True</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> @@ -377,12 +381,13 @@ <property name="width_request">250</property> <property name="height_request">96</property> <property name="visible">True</property> + <property name="can_focus">True</property> <property name="label" translatable="yes">Capabilties this might be a pretty long list so blablabla yada yda dyadhsk hdks jdhsk dks hdks hdks</property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">True</property> - <property name="selectable">False</property> + <property name="selectable">True</property> <property name="xalign">0</property> <property name="yalign">0</property> <property name="xpad">0</property> @@ -403,12 +408,13 @@ <property name="width_request">250</property> <property name="height_request">16</property> <property name="visible">True</property> + <property name="can_focus">True</property> <property name="label" translatable="yes">Device Vendor</property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">True</property> - <property name="selectable">False</property> + <property name="selectable">True</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> @@ -657,12 +663,13 @@ <property name="width_request">250</property> <property name="height_request">16</property> <property name="visible">True</property> + <property name="can_focus">True</property> <property name="label" translatable="yes">USB Version</property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">True</property> - <property name="selectable">False</property> + <property name="selectable">True</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> @@ -682,12 +689,13 @@ <property name="width_request">250</property> <property name="height_request">16</property> <property name="visible">True</property> + <property name="can_focus">True</property> <property name="label" translatable="yes">USB Bandwidth</property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">True</property> - <property name="selectable">False</property> + <property name="selectable">True</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> @@ -708,12 +716,13 @@ <property name="width_request">250</property> <property name="height_request">16</property> <property name="visible">True</property> + <property name="can_focus">True</property> <property name="label" translatable="yes">Max Power Drain</property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">True</property> - <property name="selectable">False</property> + <property name="selectable">True</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> @@ -734,12 +743,13 @@ <property name="width_request">250</property> <property name="height_request">16</property> <property name="visible">True</property> + <property name="can_focus">True</property> <property name="label" translatable="yes">Manufacturer ID</property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">True</property> - <property name="selectable">False</property> + <property name="selectable">True</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> @@ -760,12 +770,13 @@ <property name="width_request">250</property> <property name="height_request">16</property> <property name="visible">True</property> + <property name="can_focus">True</property> <property name="label" translatable="yes">Product ID</property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">True</property> - <property name="selectable">False</property> + <property name="selectable">True</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> @@ -786,12 +797,13 @@ <property name="width_request">250</property> <property name="height_request">16</property> <property name="visible">True</property> + <property name="can_focus">True</property> <property name="label" translatable="yes">Product Revision</property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">True</property> - <property name="selectable">False</property> + <property name="selectable">True</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> @@ -1039,12 +1051,13 @@ <property name="width_request">250</property> <property name="height_request">16</property> <property name="visible">True</property> + <property name="can_focus">True</property> <property name="label" translatable="yes">Manufacturer ID</property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">True</property> - <property name="selectable">False</property> + <property name="selectable">True</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> @@ -1064,12 +1077,13 @@ <property name="width_request">250</property> <property name="height_request">16</property> <property name="visible">True</property> + <property name="can_focus">True</property> <property name="label" translatable="yes">Product ID</property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">True</property> - <property name="selectable">False</property> + <property name="selectable">True</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> @@ -1090,12 +1104,13 @@ <property name="width_request">250</property> <property name="height_request">16</property> <property name="visible">True</property> + <property name="can_focus">True</property> <property name="label" translatable="yes">OEM Manufacturer ID</property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">True</property> - <property name="selectable">False</property> + <property name="selectable">True</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> @@ -1116,12 +1131,13 @@ <property name="width_request">250</property> <property name="height_request">16</property> <property name="visible">True</property> + <property name="can_focus">True</property> <property name="label" translatable="yes">OEM Product ID</property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">True</property> - <property name="selectable">False</property> + <property name="selectable">True</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> diff --git a/tools/device-manager/hal-device-manager.in b/tools/device-manager/hal-device-manager.in index e7e450f3..42255994 100644 --- a/tools/device-manager/hal-device-manager.in +++ b/tools/device-manager/hal-device-manager.in @@ -15,5 +15,7 @@ import LibGladeApplication from DeviceManager import DeviceManager gnome.program_init(Const.NAME, Const.VERSION) ++gtk.glade.bindtextdomain('@PACKAGE@', '@DATADIR@/locale') ++gtk.glade.textdomain('@PACKAGE@') DeviceManager() gtk.main() |