Commit 503c8546 authored by Guido Gunther's avatar Guido Gunther Committed by Guido Gunther

settings: Ensure types in shell

We use widgets at various places. Make sure we make the types known
in a single location since otherwise there's duplication.
Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent 59461fc8
......@@ -14,9 +14,6 @@
#include "config.h"
#include "bt-info.h"
#include "connectivity-info.h"
#include "docked-info.h"
#include "panel.h"
#include "shell.h"
#include "session-manager.h"
......@@ -384,11 +381,6 @@ phosh_panel_class_init (PhoshPanelClass *klass)
G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL,
NULL, G_TYPE_NONE, 0);
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,
"/sm/puri/phosh/ui/top-panel.ui");
gtk_widget_class_bind_template_child_private (widget_class, PhoshPanel, btn_top_panel);
......
......@@ -25,10 +25,12 @@
#include "config.h"
#include "shell.h"
#include "batteryinfo.h"
#include "background-manager.h"
#include "bt-info.h"
#include "bt-manager.h"
#include "connectivity-info.h"
#include "docked-info.h"
#include "docked-manager.h"
#include "fader.h"
#include "feedback-manager.h"
......@@ -41,6 +43,7 @@
#include "monitor-manager.h"
#include "monitor/monitor.h"
#include "mount-manager.h"
#include "settings.h"
#include "notifications/notify-manager.h"
#include "notifications/notification-banner.h"
#include "osk-manager.h"
......@@ -503,6 +506,11 @@ type_setup (void)
phosh_battery_info_get_type();
phosh_wifi_info_get_type();
phosh_wwan_info_get_type();
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);
}
......
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