[gnome-builder/wip/gtk4-port] libide/gui: fix various template issues in notification view
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] libide/gui: fix various template issues in notification view
- Date: Fri, 15 Apr 2022 16:32:42 +0000 (UTC)
commit 0472a181c72fa9d1e299615456574688fd9d6e0e
Author: Christian Hergert <chergert redhat com>
Date: Fri Apr 15 09:32:36 2022 -0700
libide/gui: fix various template issues in notification view
src/libide/gui/ide-notification-view.ui | 38 ++++++---------------------------
src/libide/gui/ide-omni-bar.ui | 8 ++++++-
2 files changed, 13 insertions(+), 33 deletions(-)
---
diff --git a/src/libide/gui/ide-notification-view.ui b/src/libide/gui/ide-notification-view.ui
index bc7b177cf..5ea7de55a 100644
--- a/src/libide/gui/ide-notification-view.ui
+++ b/src/libide/gui/ide-notification-view.ui
@@ -1,60 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.22.0 -->
<interface>
- <requires lib="gtk+" version="3.24"/>
- <template class="IdeNotificationView" parent="GtkBin">
- <property name="can_focus">False</property>
+ <requires lib="gtk" version="4.0"/>
+ <requires lib="Adw" version="1.0"/>
+ <template class="IdeNotificationView" parent="AdwBin">
<child>
<object class="GtkBox">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="spacing">6</property>
<child>
<object class="GtkLabel" id="label">
<property name="ellipsize">end</property>
<property name="margin-start">6</property>
- <property name="visible">True</property>
- <property name="width_chars">5</property>
- <property name="can_focus">False</property>
+ <property name="width-chars">5</property>
</object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
</child>
<child>
<object class="GtkButton" id="default_button">
- <property name="can_focus">True</property>
- <property name="focus_on_click">False</property>
- <property name="receives_default">True</property>
+ <property name="focus-on-click">False</property>
<child>
<object class="GtkImage" id="default_button_image">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="stock">gtk-missing-image</property>
+ <property name="icon-name">gtk-missing-image</property>
</object>
</child>
</object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
</child>
<child>
<object class="GtkBox" id="buttons">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="halign">end</property>
<property name="hexpand">True</property>
<property name="spacing">6</property>
</object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">2</property>
- </packing>
</child>
</object>
</child>
diff --git a/src/libide/gui/ide-omni-bar.ui b/src/libide/gui/ide-omni-bar.ui
index 792d1e449..10bf95258 100644
--- a/src/libide/gui/ide-omni-bar.ui
+++ b/src/libide/gui/ide-omni-bar.ui
@@ -57,7 +57,13 @@
<property name="margin-end">3</property>
<property name="hexpand">true</property>
<child>
- <object class="IdeNotificationStack" id="notification_stack"/>
+ <object class="GtkStackPage">
+ <property name="name">notifications</property>
+ <property name="child">
+ <object class="IdeNotificationStack" id="notification_stack">
+ </object>
+ </property>
+ </object>
</child>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]