Commit 0eb31b9e authored by Guido Gunther's avatar Guido Gunther Committed by Guido Gunther

panel: 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 503c8546
......@@ -10,22 +10,16 @@
#include <glib/gi18n.h>
#include "bt-info.h"
#include "docked-info.h"
#include "mode-manager.h"
#include "shell.h"
#include "settings.h"
#include "quick-setting.h"
#include "settings/brightness.h"
#include "settings/gvc-channel-bar.h"
#include "torch-info.h"
#include "wwan/phosh-wwan-mm.h"
#include "rotateinfo.h"
#include "feedbackinfo.h"
#include "feedback-manager.h"
#include "notifications/notify-manager.h"
#include "notifications/notification-frame.h"
#include "media-player.h"
#include <pulse/pulseaudio.h>
#include "gvc-mixer-control.h"
......@@ -462,14 +456,6 @@ phosh_settings_class_init (PhoshSettingsClass *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_DOCKED_INFO);
g_type_ensure (PHOSH_TYPE_FEEDBACK_INFO);
g_type_ensure (PHOSH_TYPE_MEDIA_PLAYER);
g_type_ensure (PHOSH_TYPE_QUICK_SETTING);
g_type_ensure (PHOSH_TYPE_ROTATE_INFO);
g_type_ensure (PHOSH_TYPE_TORCH_INFO);
gtk_widget_class_bind_template_child (widget_class, PhoshSettings, box_settings);
gtk_widget_class_bind_template_child (widget_class, PhoshSettings, list_notifications);
gtk_widget_class_bind_template_child (widget_class, PhoshSettings, quick_settings);
......
......@@ -33,12 +33,14 @@
#include "docked-info.h"
#include "docked-manager.h"
#include "fader.h"
#include "feedbackinfo.h"
#include "feedback-manager.h"
#include "gnome-shell-manager.h"
#include "home.h"
#include "idle-manager.h"
#include "keyboard-events.h"
#include "lockscreen-manager.h"
#include "media-player.h"
#include "mode-manager.h"
#include "monitor-manager.h"
#include "monitor/monitor.h"
......@@ -51,11 +53,14 @@
#include "phosh-wayland.h"
#include "polkit-auth-agent.h"
#include "proximity.h"
#include "quick-setting.h"
#include "rotateinfo.h"
#include "sensor-proxy-manager.h"
#include "screen-saver-manager.h"
#include "session-manager.h"
#include "system-prompter.h"
#include "torch-manager.h"
#include "torch-info.h"
#include "util.h"
#include "wifiinfo.h"
#include "wwaninfo.h"
......@@ -510,7 +515,12 @@ type_setup (void)
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_FEEDBACK_INFO);
g_type_ensure (PHOSH_TYPE_MEDIA_PLAYER);
g_type_ensure (PHOSH_TYPE_QUICK_SETTING);
g_type_ensure (PHOSH_TYPE_ROTATE_INFO);
g_type_ensure (PHOSH_TYPE_SETTINGS);
g_type_ensure (PHOSH_TYPE_TORCH_INFO);
}
......
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