Drop the device name from the drawing perspective
We have it in the titlebar now, no further need for it
This commit is contained in:
parent
0ce60deb34
commit
bdb88865f0
|
@ -15,23 +15,6 @@
|
|||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label_devicename">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="margin_left">20</property>
|
||||
<property name="margin_right">20</property>
|
||||
<property name="label" translatable="yes">device name</property>
|
||||
<attributes>
|
||||
<attribute name="weight" value="bold"/>
|
||||
</attributes>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="visible">True</property>
|
||||
|
|
|
@ -28,7 +28,6 @@ logger = logging.getLogger('drawingperspective')
|
|||
class DrawingPerspective(Gtk.Stack):
|
||||
__gtype_name__ = "DrawingPerspective"
|
||||
|
||||
label_devicename = Gtk.Template.Child()
|
||||
image_battery = Gtk.Template.Child()
|
||||
flowbox_drawings = Gtk.Template.Child()
|
||||
|
||||
|
@ -54,7 +53,6 @@ class DrawingPerspective(Gtk.Stack):
|
|||
@device.setter
|
||||
def device(self, device):
|
||||
self._device = device
|
||||
self.label_devicename.set_text(f'{device.name} - {device.address}')
|
||||
|
||||
device.connect('notify::connected', self._on_connected)
|
||||
device.connect('notify::listening', self._on_listening_stopped)
|
||||
|
|
Loading…
Reference in New Issue