[d-feet/wjt/execute-dialog-selectable-fields: 2/2] executedialog: include bus name
- From: Will Thompson <wjt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [d-feet/wjt/execute-dialog-selectable-fields: 2/2] executedialog: include bus name
- Date: Tue, 18 Sep 2018 13:03:09 +0000 (UTC)
commit a5f47d3d2bff04cb485d87dc1adce30762728b93
Author: Will Thompson <will willthompson co uk>
Date: Tue Sep 18 14:01:21 2018 +0100
executedialog: include bus name
This dialog is not particularly short of space, and it's nice to have
the full (bus name, object path, interface, method name) quad visible in
one place.
data/ui/executedialog.ui | 38 ++++++++++++++++++++++++++++++++++----
src/dfeet/executemethoddialog.py | 2 ++
2 files changed, 36 insertions(+), 4 deletions(-)
---
diff --git a/data/ui/executedialog.ui b/data/ui/executedialog.ui
index f933b8c..3af6768 100644
--- a/data/ui/executedialog.ui
+++ b/data/ui/executedialog.ui
@@ -118,7 +118,7 @@
</object>
<packing>
<property name="left_attach">0</property>
- <property name="top_attach">1</property>
+ <property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
@@ -135,7 +135,7 @@
</object>
<packing>
<property name="left_attach">0</property>
- <property name="top_attach">2</property>
+ <property name="top_attach">3</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
@@ -151,7 +151,7 @@
</object>
<packing>
<property name="left_attach">1</property>
- <property name="top_attach">1</property>
+ <property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
@@ -167,11 +167,41 @@
</object>
<packing>
<property name="left_attach">1</property>
- <property name="top_attach">2</property>
+ <property name="top_attach">3</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
+ <child>
+ <object class="GtkLabel" id="label12">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="label" translatable="yes">Bus Name:</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label_bus_name">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="margin_left">5</property>
+ <property name="margin_start">5</property>
+ <property name="use_markup">True</property>
+ <property name="selectable">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">1</property>
+ </packing>
+ </child>
</object>
<packing>
<property name="expand">False</property>
diff --git a/src/dfeet/executemethoddialog.py b/src/dfeet/executemethoddialog.py
index caf96ef..ffdb3aa 100644
--- a/src/dfeet/executemethoddialog.py
+++ b/src/dfeet/executemethoddialog.py
@@ -23,6 +23,7 @@ class ExecuteMethodDialog:
self.dialog = ui.get_root_widget()
self.dialog.set_transient_for(parent_window)
self.label_method_name = ui.get_widget('label_method_name')
+ self.label_bus_name = ui.get_widget('label_bus_name')
self.label_object_path = ui.get_widget('label_object_path')
self.label_interface = ui.get_widget('label_interface')
self.notebook = ui.get_widget('notebook1')
@@ -35,6 +36,7 @@ class ExecuteMethodDialog:
self.label_max = ui.get_widget('label_max')
ui.connect_signals(signal_dict)
self.label_method_name.set_markup("%s" % (self.method_obj.markup_str))
+ self.label_bus_name.set_text(self.bus_name)
self.label_object_path.set_markup("%s" % (self.method_obj.object_path))
self.label_interface.set_markup("%s" % (self.method_obj.iface_info.name))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]