[gnome-software: 77/110] Replace GtkEventBox by AdwBin
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 77/110] Replace GtkEventBox by AdwBin
- Date: Tue, 5 Oct 2021 20:32:41 +0000 (UTC)
commit 30da94ec8bdebe51287dc02e3f0e178870c1d1d7
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Aug 25 23:08:14 2021 -0300
Replace GtkEventBox by AdwBin
GtkEventBox doesn't exist anymore, and none of its functionality
was actually being used by these files. Just replace it by AdwBin.
src/gs-app-tile.ui | 4 +---
src/gs-summary-tile.c | 6 +++---
src/gs-summary-tile.ui | 4 +---
3 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/src/gs-app-tile.ui b/src/gs-app-tile.ui
index 4121cf0fc..435fb9b66 100644
--- a/src/gs-app-tile.ui
+++ b/src/gs-app-tile.ui
@@ -41,10 +41,8 @@
<property name="halign">fill</property>
<property name="valign">fill</property>
<child type="overlay">
- <object class="GtkEventBox" id="eventbox">
+ <object class="AdwBin">
<property name="visible">False</property>
- <property name="no_show_all">True</property>
- <property name="visible_window">True</property>
<property name="halign">start</property>
<property name="valign">start</property>
<property name="margin-top">58</property>
diff --git a/src/gs-summary-tile.c b/src/gs-summary-tile.c
index fd21d4f52..d6c248d27 100644
--- a/src/gs-summary-tile.c
+++ b/src/gs-summary-tile.c
@@ -21,7 +21,7 @@ struct _GsSummaryTile
GtkWidget *image;
GtkWidget *name;
GtkWidget *summary;
- GtkWidget *eventbox;
+ GtkWidget *bin;
GtkWidget *stack;
gint preferred_width;
};
@@ -89,7 +89,7 @@ gs_summary_tile_refresh (GsAppTile *self)
break;
}
- gtk_widget_set_visible (tile->eventbox, installed);
+ gtk_widget_set_visible (tile->bin, installed);
if (name != NULL) {
gtk_accessible_update_property (GTK_ACCESSIBLE (tile),
@@ -224,7 +224,7 @@ gs_summary_tile_class_init (GsSummaryTileClass *klass)
gtk_widget_class_bind_template_child (widget_class, GsSummaryTile,
summary);
gtk_widget_class_bind_template_child (widget_class, GsSummaryTile,
- eventbox);
+ bin);
gtk_widget_class_bind_template_child (widget_class, GsSummaryTile,
stack);
}
diff --git a/src/gs-summary-tile.ui b/src/gs-summary-tile.ui
index 1af93cbdb..682ebaba6 100644
--- a/src/gs-summary-tile.ui
+++ b/src/gs-summary-tile.ui
@@ -41,10 +41,8 @@
<property name="halign">fill</property>
<property name="valign">fill</property>
<child type="overlay">
- <object class="GtkEventBox" id="eventbox">
+ <object class="AdwBin" id="bin">
<property name="visible">False</property>
- <property name="no_show_all">True</property>
- <property name="visible_window">True</property>
<property name="halign">end</property>
<property name="valign">start</property>
<child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]