[gnome-software/1652-search-row-installed-label-breaks-layout-on-the-left] gs-app-row: Remove the 'description_box'
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1652-search-row-installed-label-breaks-layout-on-the-left] gs-app-row: Remove the 'description_box'
- Date: Tue, 22 Feb 2022 13:37:39 +0000 (UTC)
commit 411a0c07404f2645bdca66d71f153d205ed5f73c
Author: Milan Crha <mcrha redhat com>
Date: Tue Feb 22 14:36:52 2022 +0100
gs-app-row: Remove the 'description_box'
It's empty now.
Related to https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1652
src/gs-app-row.c | 9 ---------
src/gs-app-row.h | 1 -
src/gs-app-row.ui | 6 ------
src/gs-extras-page.c | 4 ----
src/gs-installed-page.c | 4 ----
src/gs-moderate-page.c | 4 ----
src/gs-search-page.c | 4 ----
src/gs-update-list.c | 4 ----
src/gs-updates-page.c | 5 -----
src/gs-updates-section.c | 5 -----
src/gs-updates-section.h | 1 -
11 files changed, 47 deletions(-)
---
diff --git a/src/gs-app-row.c b/src/gs-app-row.c
index 0966fa4cf..df4eb848a 100644
--- a/src/gs-app-row.c
+++ b/src/gs-app-row.c
@@ -30,7 +30,6 @@ typedef struct
GtkWidget *version_update_label;
GtkWidget *system_updates_label; /* Only for "System Updates" app */
GtkWidget *star;
- GtkWidget *description_box;
GtkWidget *description_label;
GtkWidget *button_box;
GtkWidget *button_revealer;
@@ -520,10 +519,6 @@ gs_app_row_actually_refresh (GsAppRow *app_row)
gtk_widget_get_visible (priv->label_installed) ||
gtk_widget_get_visible (priv->label_warning));
- gtk_widget_set_visible (priv->description_box,
- gtk_widget_get_visible (priv->box_tag) ||
- gtk_widget_get_visible (priv->description_label));
-
gtk_label_set_max_width_chars (GTK_LABEL (priv->name_label),
gtk_widget_get_visible (priv->description_label) ? 20 : -1);
}
@@ -823,7 +818,6 @@ gs_app_row_class_init (GsAppRowClass *klass)
gtk_widget_class_bind_template_child_private (widget_class, GsAppRow, version_update_label);
gtk_widget_class_bind_template_child_private (widget_class, GsAppRow, system_updates_label);
gtk_widget_class_bind_template_child_private (widget_class, GsAppRow, star);
- gtk_widget_class_bind_template_child_private (widget_class, GsAppRow, description_box);
gtk_widget_class_bind_template_child_private (widget_class, GsAppRow, description_label);
gtk_widget_class_bind_template_child_private (widget_class, GsAppRow, button_box);
gtk_widget_class_bind_template_child_private (widget_class, GsAppRow, button_revealer);
@@ -859,7 +853,6 @@ gs_app_row_init (GsAppRow *app_row)
void
gs_app_row_set_size_groups (GsAppRow *app_row,
GtkSizeGroup *name,
- GtkSizeGroup *desc,
GtkSizeGroup *button_label,
GtkSizeGroup *button_image)
{
@@ -867,8 +860,6 @@ gs_app_row_set_size_groups (GsAppRow *app_row,
if (name != NULL)
gtk_size_group_add_widget (name, priv->name_box);
- if (desc != NULL)
- gtk_size_group_add_widget (desc, priv->description_box);
gs_progress_button_set_size_groups (GS_PROGRESS_BUTTON (priv->button), button_label, button_image);
}
diff --git a/src/gs-app-row.h b/src/gs-app-row.h
index 560d45c3e..4364b2f5a 100644
--- a/src/gs-app-row.h
+++ b/src/gs-app-row.h
@@ -44,7 +44,6 @@ void gs_app_row_set_show_update (GsAppRow *app_row,
GsApp *gs_app_row_get_app (GsAppRow *app_row);
void gs_app_row_set_size_groups (GsAppRow *app_row,
GtkSizeGroup *name,
- GtkSizeGroup *desc,
GtkSizeGroup *button_label,
GtkSizeGroup *button_image);
void gs_app_row_set_show_installed_size (GsAppRow *app_row,
diff --git a/src/gs-app-row.ui b/src/gs-app-row.ui
index ec11365fc..41bcfb54d 100644
--- a/src/gs-app-row.ui
+++ b/src/gs-app-row.ui
@@ -94,12 +94,6 @@
</child>
</object>
</child>
- <child>
- <object class="GtkBox" id="description_box">
- <property name="orientation">horizontal</property>
- <property name="valign">center</property>
- </object>
- </child>
<child>
<object class="GtkBox" id="system_updates_box">
<property name="orientation">horizontal</property>
diff --git a/src/gs-extras-page.c b/src/gs-extras-page.c
index e3916e430..01f1387b6 100644
--- a/src/gs-extras-page.c
+++ b/src/gs-extras-page.c
@@ -46,7 +46,6 @@ struct _GsExtrasPage
GsShell *shell;
GsExtrasPageState state;
GtkSizeGroup *sizegroup_name;
- GtkSizeGroup *sizegroup_desc;
GtkSizeGroup *sizegroup_button_label;
GtkSizeGroup *sizegroup_button_image;
GPtrArray *array_search_data;
@@ -323,7 +322,6 @@ gs_extras_page_add_app (GsExtrasPage *self, GsApp *app, GsAppList *list, SearchD
gtk_list_box_append (GTK_LIST_BOX (self->list_box_results), app_row);
gs_app_row_set_size_groups (GS_APP_ROW (app_row),
self->sizegroup_name,
- self->sizegroup_desc,
self->sizegroup_button_label,
self->sizegroup_button_image);
gtk_widget_show (app_row);
@@ -1272,7 +1270,6 @@ gs_extras_page_dispose (GObject *object)
g_clear_object (&self->search_cancellable);
g_clear_object (&self->sizegroup_name);
- g_clear_object (&self->sizegroup_desc);
g_clear_object (&self->sizegroup_button_label);
g_clear_object (&self->sizegroup_button_image);
g_clear_object (&self->language);
@@ -1295,7 +1292,6 @@ gs_extras_page_init (GsExtrasPage *self)
self->state = GS_EXTRAS_PAGE_STATE_LOADING;
self->sizegroup_name = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
- self->sizegroup_desc = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
self->sizegroup_button_label = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
self->sizegroup_button_image = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
self->vendor = gs_vendor_new ();
diff --git a/src/gs-installed-page.c b/src/gs-installed-page.c
index 3817ab01f..15d91b26f 100644
--- a/src/gs-installed-page.c
+++ b/src/gs-installed-page.c
@@ -26,7 +26,6 @@ struct _GsInstalledPage
GsPluginLoader *plugin_loader;
GCancellable *cancellable;
GtkSizeGroup *sizegroup_name;
- GtkSizeGroup *sizegroup_desc;
GtkSizeGroup *sizegroup_button_label;
GtkSizeGroup *sizegroup_button_image;
gboolean cache_valid;
@@ -360,7 +359,6 @@ gs_installed_page_add_app (GsInstalledPage *self, GsAppList *list, GsApp *app)
gs_app_row_set_size_groups (GS_APP_ROW (app_row),
self->sizegroup_name,
- self->sizegroup_desc,
self->sizegroup_button_label,
self->sizegroup_button_image);
@@ -743,7 +741,6 @@ gs_installed_page_dispose (GObject *object)
GsInstalledPage *self = GS_INSTALLED_PAGE (object);
g_clear_object (&self->sizegroup_name);
- g_clear_object (&self->sizegroup_desc);
g_clear_object (&self->sizegroup_button_label);
g_clear_object (&self->sizegroup_button_image);
@@ -814,7 +811,6 @@ gs_installed_page_init (GsInstalledPage *self)
gtk_widget_init_template (GTK_WIDGET (self));
self->sizegroup_name = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
- self->sizegroup_desc = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
self->sizegroup_button_label = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
self->sizegroup_button_image = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
diff --git a/src/gs-moderate-page.c b/src/gs-moderate-page.c
index c26d0bbdc..c3f680430 100644
--- a/src/gs-moderate-page.c
+++ b/src/gs-moderate-page.c
@@ -27,7 +27,6 @@ struct _GsModeratePage
GsPluginLoader *plugin_loader;
GCancellable *cancellable;
GtkSizeGroup *sizegroup_name;
- GtkSizeGroup *sizegroup_desc;
GtkSizeGroup *sizegroup_button_label;
GtkSizeGroup *sizegroup_button_image;
GsShell *shell;
@@ -160,7 +159,6 @@ gs_moderate_page_add_app (GsModeratePage *self, GsApp *app)
gtk_list_box_append (GTK_LIST_BOX (self->list_box_install), app_row);
gs_app_row_set_size_groups (GS_APP_ROW (app_row),
self->sizegroup_name,
- self->sizegroup_desc,
self->sizegroup_button_label,
self->sizegroup_button_image);
@@ -360,7 +358,6 @@ gs_moderate_page_dispose (GObject *object)
GsModeratePage *self = GS_MODERATE_PAGE (object);
g_clear_object (&self->sizegroup_name);
- g_clear_object (&self->sizegroup_desc);
g_clear_object (&self->sizegroup_button_label);
g_clear_object (&self->sizegroup_button_image);
@@ -420,7 +417,6 @@ gs_moderate_page_init (GsModeratePage *self)
G_CALLBACK (gs_moderate_page_selection_changed_cb), self);
self->sizegroup_name = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
- self->sizegroup_desc = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
self->sizegroup_button_label = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
self->sizegroup_button_image = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
}
diff --git a/src/gs-search-page.c b/src/gs-search-page.c
index d58ef9d25..71a024b6b 100644
--- a/src/gs-search-page.c
+++ b/src/gs-search-page.c
@@ -27,7 +27,6 @@ struct _GsSearchPage
GCancellable *cancellable;
GCancellable *search_cancellable;
GtkSizeGroup *sizegroup_name;
- GtkSizeGroup *sizegroup_desc;
GtkSizeGroup *sizegroup_button_label;
GtkSizeGroup *sizegroup_button_image;
GsShell *shell;
@@ -153,7 +152,6 @@ gs_search_page_get_search_cb (GObject *source_object,
gtk_list_box_append (GTK_LIST_BOX (self->list_box_search), app_row);
gs_app_row_set_size_groups (GS_APP_ROW (app_row),
self->sizegroup_name,
- self->sizegroup_desc,
self->sizegroup_button_label,
self->sizegroup_button_image);
gtk_widget_show (app_row);
@@ -475,7 +473,6 @@ gs_search_page_dispose (GObject *object)
GsSearchPage *self = GS_SEARCH_PAGE (object);
g_clear_object (&self->sizegroup_name);
- g_clear_object (&self->sizegroup_desc);
g_clear_object (&self->sizegroup_button_label);
g_clear_object (&self->sizegroup_button_image);
@@ -532,7 +529,6 @@ gs_search_page_init (GsSearchPage *self)
gtk_widget_init_template (GTK_WIDGET (self));
self->sizegroup_name = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
- self->sizegroup_desc = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
self->sizegroup_button_label = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
self->sizegroup_button_image = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
diff --git a/src/gs-update-list.c b/src/gs-update-list.c
index 034d60380..facfd71f5 100644
--- a/src/gs-update-list.c
+++ b/src/gs-update-list.c
@@ -19,7 +19,6 @@
typedef struct
{
GtkSizeGroup *sizegroup_name;
- GtkSizeGroup *sizegroup_desc;
GtkListBox *listbox;
} GsUpdateListPrivate;
@@ -63,7 +62,6 @@ gs_update_list_add_app (GsUpdateList *update_list, GsApp *app)
gtk_list_box_append (priv->listbox, app_row);
gs_app_row_set_size_groups (GS_APP_ROW (app_row),
priv->sizegroup_name,
- priv->sizegroup_desc,
NULL,
NULL);
g_signal_connect_object (app, "notify::state",
@@ -94,7 +92,6 @@ gs_update_list_dispose (GObject *object)
}
g_clear_object (&priv->sizegroup_name);
- g_clear_object (&priv->sizegroup_desc);
G_OBJECT_CLASS (gs_update_list_parent_class)->dispose (object);
}
@@ -104,7 +101,6 @@ gs_update_list_init (GsUpdateList *update_list)
{
GsUpdateListPrivate *priv = gs_update_list_get_instance_private (update_list);
priv->sizegroup_name = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
- priv->sizegroup_desc = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
priv->listbox = GTK_LIST_BOX (gtk_list_box_new ());
gtk_list_box_set_selection_mode (priv->listbox, GTK_SELECTION_NONE);
diff --git a/src/gs-updates-page.c b/src/gs-updates-page.c
index 686ec740c..a23dea6ed 100644
--- a/src/gs-updates-page.c
+++ b/src/gs-updates-page.c
@@ -79,7 +79,6 @@ struct _GsUpdatesPage
GtkSizeGroup *sizegroup_image;
GtkSizeGroup *sizegroup_name;
- GtkSizeGroup *sizegroup_desc;
GtkSizeGroup *sizegroup_button_label;
GtkSizeGroup *sizegroup_button_image;
GtkSizeGroup *sizegroup_header;
@@ -1231,7 +1230,6 @@ gs_updates_page_setup (GsPage *page,
gs_updates_section_set_size_groups (self->sections[i],
self->sizegroup_image,
self->sizegroup_name,
- self->sizegroup_desc,
self->sizegroup_button_label,
self->sizegroup_button_image,
self->sizegroup_header);
@@ -1314,7 +1312,6 @@ gs_updates_page_setup (GsPage *page,
/* visually aligned */
self->sizegroup_image = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
self->sizegroup_name = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
- self->sizegroup_desc = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
self->sizegroup_button_label = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
self->sizegroup_button_image = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
self->sizegroup_header = gtk_size_group_new (GTK_SIZE_GROUP_VERTICAL);
@@ -1402,7 +1399,6 @@ gs_updates_page_dispose (GObject *object)
g_clear_object (&self->sizegroup_image);
g_clear_object (&self->sizegroup_name);
- g_clear_object (&self->sizegroup_desc);
g_clear_object (&self->sizegroup_button_label);
g_clear_object (&self->sizegroup_button_image);
g_clear_object (&self->sizegroup_header);
@@ -1474,7 +1470,6 @@ gs_updates_page_init (GsUpdatesPage *self)
self->sizegroup_image = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
self->sizegroup_name = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
- self->sizegroup_desc = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
self->sizegroup_button_label = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
self->sizegroup_button_image = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
self->sizegroup_header = gtk_size_group_new (GTK_SIZE_GROUP_VERTICAL);
diff --git a/src/gs-updates-section.c b/src/gs-updates-section.c
index 8867da797..ef0bb3854 100644
--- a/src/gs-updates-section.c
+++ b/src/gs-updates-section.c
@@ -41,7 +41,6 @@ struct _GsUpdatesSection
GsPage *page;
GsPluginLoader *plugin_loader;
GtkSizeGroup *sizegroup_name;
- GtkSizeGroup *sizegroup_desc;
GtkSizeGroup *sizegroup_button_label;
GtkSizeGroup *sizegroup_button_image;
GtkSizeGroup *sizegroup_header;
@@ -146,7 +145,6 @@ gs_updates_section_add_app (GsUpdatesSection *self, GsApp *app)
gs_app_row_set_size_groups (GS_APP_ROW (app_row),
self->sizegroup_name,
- self->sizegroup_desc,
self->sizegroup_button_label,
self->sizegroup_button_image);
g_signal_connect_object (app, "notify::state",
@@ -561,7 +559,6 @@ gs_updates_section_dispose (GObject *object)
g_clear_object (&self->plugin_loader);
g_clear_object (&self->page);
g_clear_object (&self->sizegroup_name);
- g_clear_object (&self->sizegroup_desc);
g_clear_object (&self->sizegroup_button_label);
g_clear_object (&self->sizegroup_button_image);
g_clear_object (&self->sizegroup_header);
@@ -624,7 +621,6 @@ void
gs_updates_section_set_size_groups (GsUpdatesSection *self,
GtkSizeGroup *image,
GtkSizeGroup *name,
- GtkSizeGroup *desc,
GtkSizeGroup *button_label,
GtkSizeGroup *button_image,
GtkSizeGroup *header)
@@ -632,7 +628,6 @@ gs_updates_section_set_size_groups (GsUpdatesSection *self,
g_return_if_fail (GS_IS_UPDATES_SECTION (self));
g_set_object (&self->sizegroup_name, name);
- g_set_object (&self->sizegroup_desc, desc);
g_set_object (&self->sizegroup_button_label, button_label);
g_set_object (&self->sizegroup_button_image, button_image);
g_set_object (&self->sizegroup_header, header);
diff --git a/src/gs-updates-section.h b/src/gs-updates-section.h
index 7c6c382ff..24ff8198c 100644
--- a/src/gs-updates-section.h
+++ b/src/gs-updates-section.h
@@ -39,7 +39,6 @@ void gs_updates_section_remove_all (GsUpdatesSection
*self);
void gs_updates_section_set_size_groups (GsUpdatesSection *self,
GtkSizeGroup *image,
GtkSizeGroup *name,
- GtkSizeGroup *desc,
GtkSizeGroup *button_label,
GtkSizeGroup *button_image,
GtkSizeGroup *header);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]