Commit 0e01c7d1 authored by Mohammed Sadiq's avatar Mohammed Sadiq Committed by Georges Basile Stavracas Neto
Browse files

info: Derive subpanels from CcPanel

This is required for adding these subpanels as panels
for the new g-c-c shell design.

https://bugzilla.gnome.org/show_bug.cgi?id=779216
parent f82af13d
......@@ -59,7 +59,7 @@ typedef struct
struct _CcInfoDefaultAppsPanel
{
GtkBox parent_instance;
CcPanel parent_instance;
GtkWidget *default_apps_grid;
......@@ -72,7 +72,7 @@ struct _CcInfoDefaultAppsPanel
};
G_DEFINE_TYPE (CcInfoDefaultAppsPanel, cc_info_default_apps_panel, GTK_TYPE_BOX)
G_DEFINE_TYPE (CcInfoDefaultAppsPanel, cc_info_default_apps_panel, CC_TYPE_PANEL)
static void
default_app_changed (GtkAppChooserButton *button,
......
......@@ -26,7 +26,7 @@ G_BEGIN_DECLS
#define CC_TYPE_INFO_DEFAULT_APPS_PANEL (cc_info_default_apps_panel_get_type ())
G_DECLARE_FINAL_TYPE (CcInfoDefaultAppsPanel, cc_info_default_apps_panel, CC, INFO_DEFAULT_APPS_PANEL, GtkBox)
G_DECLARE_FINAL_TYPE (CcInfoDefaultAppsPanel, cc_info_default_apps_panel, CC, INFO_DEFAULT_APPS_PANEL, CcPanel)
GtkWidget *cc_info_default_apps_panel_new (void);
......
......@@ -87,7 +87,7 @@ typedef struct
struct _CcInfoOverviewPanel
{
GtkBox parent_instance;
CcPanel parent_instance;
/*< private >*/
CcInfoOverviewPanelPrivate *priv;
......@@ -106,7 +106,7 @@ typedef struct
} VersionData;
G_DEFINE_TYPE_WITH_PRIVATE (CcInfoOverviewPanel, cc_info_overview_panel, GTK_TYPE_BOX)
G_DEFINE_TYPE_WITH_PRIVATE (CcInfoOverviewPanel, cc_info_overview_panel, CC_TYPE_PANEL)
static void
version_start_element_handler (GMarkupParseContext *ctx,
......
......@@ -26,7 +26,7 @@ G_BEGIN_DECLS
#define CC_TYPE_INFO_OVERVIEW_PANEL (cc_info_overview_panel_get_type ())
G_DECLARE_FINAL_TYPE (CcInfoOverviewPanel, cc_info_overview_panel, CC, INFO_OVERVIEW_PANEL, GtkBox);
G_DECLARE_FINAL_TYPE (CcInfoOverviewPanel, cc_info_overview_panel, CC, INFO_OVERVIEW_PANEL, CcPanel)
GtkWidget *cc_info_overview_panel_new (void);
......
......@@ -62,7 +62,7 @@
struct _CcInfoRemovableMediaPanel
{
GtkBox parent_instance;
CcPanel parent_instance;
/* Media */
GSettings *media_settings;
......@@ -85,7 +85,7 @@ struct _CcInfoRemovableMediaPanel
};
G_DEFINE_TYPE (CcInfoRemovableMediaPanel, cc_info_removable_media_panel, GTK_TYPE_BOX)
G_DEFINE_TYPE (CcInfoRemovableMediaPanel, cc_info_removable_media_panel, CC_TYPE_PANEL)
static char **
remove_elem_from_str_array (char **v,
......
......@@ -26,7 +26,7 @@ G_BEGIN_DECLS
#define CC_TYPE_INFO_REMOVABLE_MEDIA_PANEL (cc_info_removable_media_panel_get_type ())
G_DECLARE_FINAL_TYPE (CcInfoRemovableMediaPanel, cc_info_removable_media_panel, CC, INFO_REMOVABLE_MEDIA_PANEL, GtkBox)
G_DECLARE_FINAL_TYPE (CcInfoRemovableMediaPanel, cc_info_removable_media_panel, CC, INFO_REMOVABLE_MEDIA_PANEL, CcPanel)
G_END_DECLS
......
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<template class="CcInfoDefaultAppsPanel" parent="GtkBox">
<template class="CcInfoDefaultAppsPanel" parent="CcPanel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="expand">True</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">center</property>
......@@ -198,5 +203,7 @@
<property name="position">0</property>
</packing>
</child>
</object>
</child>
</template>
</interface>
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<template class="CcInfoOverviewPanel" parent="GtkBox">
<template class="CcInfoOverviewPanel" parent="CcPanel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="expand">True</property>
<child>
<object class="GtkBox" id="">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">18</property>
......@@ -322,6 +327,8 @@
<property name="pack_type">end</property>
<property name="position">3</property>
</packing>
</child>
</object>
</child>
</template>
</interface>
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<template class="CcInfoRemovableMediaPanel" parent="GtkBox">
<template class="CcInfoRemovableMediaPanel" parent="CcPanel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="expand">True</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">horizontal</property>
......@@ -283,6 +288,8 @@
<property name="position">0</property>
</packing>
</child>
</object>
</child>
</template>
<object class="GtkDialog" id="media_dialog">
......
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