[gnome-builder/wip/exalm/lists: 4/7] plugins/buildui: Use menu style for the popover
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/exalm/lists: 4/7] plugins/buildui: Use menu style for the popover
- Date: Mon, 25 Jul 2022 18:55:45 +0000 (UTC)
commit 85a3fd42af108f2c95f5cc07f7f5f2d4f2566f04
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Jul 25 08:31:05 2022 +0400
plugins/buildui: Use menu style for the popover
src/plugins/buildui/gbp-buildui-status-popover.ui | 154 ++++++++++++----------
1 file changed, 81 insertions(+), 73 deletions(-)
---
diff --git a/src/plugins/buildui/gbp-buildui-status-popover.ui
b/src/plugins/buildui/gbp-buildui-status-popover.ui
index 6ceddbe0b..d8f44d334 100644
--- a/src/plugins/buildui/gbp-buildui-status-popover.ui
+++ b/src/plugins/buildui/gbp-buildui-status-popover.ui
@@ -2,101 +2,109 @@
<interface>
<template class="GbpBuilduiStatusPopover" parent="GtkPopover">
<property name="width-request">400</property>
+ <style>
+ <class name="menu"/>
+ </style>
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
- <property name="spacing">6</property>
+
<child>
<object class="GtkStackSwitcher">
<property name="stack">stack</property>
+ <property name="margin-top">6</property>
+ <property name="margin-bottom">6</property>
+ <property name="margin-start">6</property>
+ <property name="margin-end">6</property>
</object>
</child>
<child>
- <object class="GtkFrame">
+ <object class="GtkStack" id="stack">
+ <property name="hhomogeneous">false</property>
+ <property name="vhomogeneous">false</property>
+ <property name="transition-duration">200</property>
+ <property name="transition-type">crossfade</property>
+ <property name="interpolate-size">True</property>
<child>
- <object class="GtkStack" id="stack">
- <property name="hhomogeneous">false</property>
- <property name="vhomogeneous">false</property>
- <property name="transition-duration">200</property>
- <property name="transition-type">crossfade</property>
- <child>
- <object class="GtkStackPage" id="errors">
- <property name="use-underline">true</property>
- <property name="name">errors</property>
- <property name="child">
- <object class="GtkScrolledWindow">
- <property name="has-frame">true</property>
- <property name="propagate-natural-height">true</property>
- <property name="propagate-natural-width">true</property>
- <property name="min-content-height">300</property>
- <property name="max-content-height">600</property>
- <property name="min-content-width">400</property>
- <property name="max-content-width">400</property>
- <child>
- <object class="GtkListView">
- <signal name="activate" handler="gbp_buildui_status_popover_activate_cb"
swapped="true" object="GbpBuilduiStatusPopover"/>
- <property name="orientation">vertical</property>
- <property name="single-click-activate">True</property>
- <property name="factory">
- <object class="GtkBuilderListItemFactory">
- <property
name="resource">/plugins/buildui/gbp-buildui-status-popover-row.ui</property>
- </object>
- </property>
+ <object class="GtkStackPage" id="errors">
+ <property name="use-underline">true</property>
+ <property name="name">errors</property>
+ <property name="child">
+ <object class="GtkScrolledWindow">
+ <property name="propagate-natural-height">true</property>
+ <property name="propagate-natural-width">true</property>
+ <property name="min-content-height">300</property>
+ <property name="max-content-height">600</property>
+ <property name="min-content-width">400</property>
+ <property name="max-content-width">400</property>
+ <style>
+ <class name="shadow-when-scroll"/>
+ </style>
+ <child>
+ <object class="GtkListView">
+ <signal name="activate" handler="gbp_buildui_status_popover_activate_cb"
swapped="true" object="GbpBuilduiStatusPopover"/>
+ <property name="orientation">vertical</property>
+ <property name="single-click-activate">True</property>
+ <property name="factory">
+ <object class="GtkBuilderListItemFactory">
+ <property
name="resource">/plugins/buildui/gbp-buildui-status-popover-row.ui</property>
+ </object>
+ </property>
+ <property name="model">
+ <object class="GtkNoSelection">
<property name="model">
- <object class="GtkNoSelection">
- <property name="model">
- <object class="GtkFilterListModel" id="errors_model">
- <property name="model">diagnostics</property>
- <property name="filter">error_filter</property>
- </object>
- </property>
+ <object class="GtkFilterListModel" id="errors_model">
+ <property name="model">diagnostics</property>
+ <property name="filter">error_filter</property>
</object>
</property>
</object>
- </child>
+ </property>
</object>
- </property>
+ </child>
</object>
- </child>
- <child>
- <object class="GtkStackPage" id="warnings">
- <property name="use-underline">true</property>
- <property name="name">warnings</property>
- <property name="child">
- <object class="GtkScrolledWindow">
- <property name="has-frame">true</property>
- <property name="propagate-natural-height">true</property>
- <property name="propagate-natural-width">true</property>
- <property name="min-content-height">300</property>
- <property name="max-content-height">600</property>
- <property name="min-content-width">400</property>
- <property name="max-content-width">400</property>
- <child>
- <object class="GtkListView">
- <signal name="activate" handler="gbp_buildui_status_popover_activate_cb"
swapped="true" object="GbpBuilduiStatusPopover"/>
- <property name="orientation">vertical</property>
- <property name="single-click-activate">True</property>
- <property name="factory">
- <object class="GtkBuilderListItemFactory">
- <property
name="resource">/plugins/buildui/gbp-buildui-status-popover-row.ui</property>
- </object>
- </property>
+ </property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkStackPage" id="warnings">
+ <property name="use-underline">true</property>
+ <property name="name">warnings</property>
+ <property name="child">
+ <object class="GtkScrolledWindow">
+ <property name="propagate-natural-height">true</property>
+ <property name="propagate-natural-width">true</property>
+ <property name="min-content-height">300</property>
+ <property name="max-content-height">600</property>
+ <property name="min-content-width">400</property>
+ <property name="max-content-width">400</property>
+ <style>
+ <class name="shadow-when-scroll"/>
+ </style>
+ <child>
+ <object class="GtkListView">
+ <signal name="activate" handler="gbp_buildui_status_popover_activate_cb"
swapped="true" object="GbpBuilduiStatusPopover"/>
+ <property name="orientation">vertical</property>
+ <property name="single-click-activate">True</property>
+ <property name="factory">
+ <object class="GtkBuilderListItemFactory">
+ <property
name="resource">/plugins/buildui/gbp-buildui-status-popover-row.ui</property>
+ </object>
+ </property>
+ <property name="model">
+ <object class="GtkNoSelection">
<property name="model">
- <object class="GtkNoSelection">
- <property name="model">
- <object class="GtkFilterListModel" id="warnings_model">
- <property name="model">diagnostics</property>
- <property name="filter">warning_filter</property>
- </object>
- </property>
+ <object class="GtkFilterListModel" id="warnings_model">
+ <property name="model">diagnostics</property>
+ <property name="filter">warning_filter</property>
</object>
</property>
</object>
- </child>
+ </property>
</object>
- </property>
+ </child>
</object>
- </child>
+ </property>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]