display: Make CcDisplaySettings subclass GtkBox
We'll need more widgets under it soon.
This commit is contained in:
parent
de758cc962
commit
ec2632de92
3 changed files with 5 additions and 4 deletions
|
@ -30,7 +30,7 @@
|
|||
|
||||
struct _CcDisplaySettings
|
||||
{
|
||||
AdwBin object;
|
||||
GtkBox object;
|
||||
|
||||
gboolean updating;
|
||||
gboolean num_scales;
|
||||
|
@ -66,7 +66,7 @@ enum {
|
|||
PROP_LAST
|
||||
};
|
||||
|
||||
G_DEFINE_TYPE (CcDisplaySettings, cc_display_settings, ADW_TYPE_BIN)
|
||||
G_DEFINE_TYPE (CcDisplaySettings, cc_display_settings, GTK_TYPE_BOX)
|
||||
|
||||
static GParamSpec *props[PROP_LAST];
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
G_BEGIN_DECLS
|
||||
|
||||
#define CC_TYPE_DISPLAY_SETTINGS cc_display_settings_get_type ()
|
||||
G_DECLARE_FINAL_TYPE (CcDisplaySettings, cc_display_settings, CC, DISPLAY_SETTINGS, AdwBin);
|
||||
G_DECLARE_FINAL_TYPE (CcDisplaySettings, cc_display_settings, CC, DISPLAY_SETTINGS, GtkBox);
|
||||
|
||||
CcDisplaySettings* cc_display_settings_new (void);
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.22.0 -->
|
||||
<interface>
|
||||
<template class="CcDisplaySettings" parent="AdwBin">
|
||||
<template class="CcDisplaySettings" parent="GtkBox">
|
||||
<child>
|
||||
<object class="GtkListBox" id="listbox">
|
||||
<property name="hexpand">True</property>
|
||||
<property name="selection_mode">none</property>
|
||||
<style>
|
||||
<class name="boxed-list" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue