Commit 80d2c2cd authored by Guido Gunther's avatar Guido Gunther Committed by Guido Gunther
Browse files

status-bar: Add docked icon when docked



Show no icon when undocked
Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent 9569fe9d
......@@ -16,6 +16,7 @@
#include "bt-info.h"
#include "connectivity-info.h"
#include "docked-info.h"
#include "panel.h"
#include "shell.h"
#include "session.h"
......@@ -379,6 +380,7 @@ phosh_panel_class_init (PhoshPanelClass *klass)
g_type_ensure (PHOSH_TYPE_BT_INFO);
g_type_ensure (PHOSH_TYPE_CONNECTIVITY_INFO);
g_type_ensure (PHOSH_TYPE_DOCKED_INFO);
g_type_ensure (PHOSH_TYPE_SETTINGS);
gtk_widget_class_set_template_from_resource (widget_class,
......
......@@ -120,6 +120,19 @@
<property name="position">3</property>
</packing>
</child>
<child>
<object class="PhoshDockedInfo" id="docked_info">
<property name="visible" bind-source="docked_info" bind-property="enabled" bind-flags="sync-create"/>
<property name="can_focus">False</property>
<property name="icon-size">GTK_ICON_SIZE_SMALL_TOOLBAR</property>
<property name="margin_right">8</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">4</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment