[gnome-control-center/gbsneto/display-panel-redesign: 14/17] display: Make CcDisplaySettings subclass GtkBox
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gbsneto/display-panel-redesign: 14/17] display: Make CcDisplaySettings subclass GtkBox
- Date: Thu, 13 Jan 2022 19:20:13 +0000 (UTC)
commit 25960e7d07ea44976d942cd93c0d066367d71337
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Jan 13 09:17:46 2022 -0300
display: Make CcDisplaySettings subclass GtkBox
We'll need more widgets under it soon.
panels/display/cc-display-settings.c | 4 ++--
panels/display/cc-display-settings.h | 2 +-
panels/display/cc-display-settings.ui | 3 ++-
3 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/panels/display/cc-display-settings.c b/panels/display/cc-display-settings.c
index 2d83972f2..600db2119 100644
--- a/panels/display/cc-display-settings.c
+++ b/panels/display/cc-display-settings.c
@@ -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];
diff --git a/panels/display/cc-display-settings.h b/panels/display/cc-display-settings.h
index 2ed074861..ae88ee31b 100644
--- a/panels/display/cc-display-settings.h
+++ b/panels/display/cc-display-settings.h
@@ -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);
diff --git a/panels/display/cc-display-settings.ui b/panels/display/cc-display-settings.ui
index 15518e88a..ed090918a 100644
--- a/panels/display/cc-display-settings.ui
+++ b/panels/display/cc-display-settings.ui
@@ -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" />
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]