[gnome-software/bilelmoussaoui/no-frame: 5/7] gs-removal-dialog: Stop using GtkFrame
- From: Phaedrus Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/bilelmoussaoui/no-frame: 5/7] gs-removal-dialog: Stop using GtkFrame
- Date: Sun, 11 Apr 2021 05:22:27 +0000 (UTC)
commit 82f581e6a72ac6a7979534f7fdc76d5ee56beaea
Author: Phaedrus Leeds <mwleeds protonmail com>
Date: Sat Apr 10 22:12:45 2021 -0700
gs-removal-dialog: Stop using GtkFrame
Use a libhandy css class instead which is cleaner.
src/gs-removal-dialog.c | 15 ---------------
src/gs-removal-dialog.ui | 15 ++++++---------
2 files changed, 6 insertions(+), 24 deletions(-)
---
diff --git a/src/gs-removal-dialog.c b/src/gs-removal-dialog.c
index 0d946c71c..a3f88fa98 100644
--- a/src/gs-removal-dialog.c
+++ b/src/gs-removal-dialog.c
@@ -23,17 +23,6 @@ struct _GsRemovalDialog
G_DEFINE_TYPE (GsRemovalDialog, gs_removal_dialog, GTK_TYPE_MESSAGE_DIALOG)
-static void
-list_header_func (GtkListBoxRow *row,
- GtkListBoxRow *before,
- gpointer user_data)
-{
- GtkWidget *header = NULL;
- if (before != NULL)
- header = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_list_box_row_set_header (row, header);
-}
-
static gint
list_sort_func (GtkListBoxRow *a,
GtkListBoxRow *b,
@@ -141,10 +130,6 @@ gs_removal_dialog_init (GsRemovalDialog *self)
insert_details_widget (GTK_MESSAGE_DIALOG (self), self->scrolledwindow);
- gtk_list_box_set_header_func (GTK_LIST_BOX (self->listbox),
- list_header_func,
- self,
- NULL);
gtk_list_box_set_sort_func (GTK_LIST_BOX (self->listbox),
list_sort_func,
self, NULL);
diff --git a/src/gs-removal-dialog.ui b/src/gs-removal-dialog.ui
index 3d03c755f..cbba2c893 100644
--- a/src/gs-removal-dialog.ui
+++ b/src/gs-removal-dialog.ui
@@ -8,17 +8,14 @@
<property name="vscrollbar_policy">automatic</property>
<property name="shadow_type">none</property>
<child>
- <object class="GtkFrame" id="frame">
- <property name="visible">True</property>
- <property name="shadow_type">in</property>
+ <object class="GtkListBox" id="listbox">
<property name="halign">fill</property>
<property name="valign">start</property>
- <child>
- <object class="GtkListBox" id="listbox">
- <property name="visible">True</property>
- <property name="selection_mode">none</property>
- </object>
- </child>
+ <property name="visible">True</property>
+ <property name="selection_mode">none</property>
+ <style>
+ <class name="content" />
+ </style>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]