[gnome-software] trivial: Allow using app tiles when no name has been assigned
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Allow using app tiles when no name has been assigned
- Date: Mon, 8 May 2017 11:32:13 +0000 (UTC)
commit acfe21c5af701b2d70480148d815a14475d6cd37
Author: Richard Hughes <richard hughsie com>
Date: Mon May 8 11:07:32 2017 +0100
trivial: Allow using app tiles when no name has been assigned
src/gs-feature-tile.c | 2 +-
src/gs-summary-tile.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-feature-tile.c b/src/gs-feature-tile.c
index 2818228..0bc8587 100644
--- a/src/gs-feature-tile.c
+++ b/src/gs-feature-tile.c
@@ -78,7 +78,7 @@ app_state_changed_idle (gpointer user_data)
break;
}
- if (GTK_IS_ACCESSIBLE (accessible)) {
+ if (GTK_IS_ACCESSIBLE (accessible) && name != NULL) {
atk_object_set_name (accessible, name);
atk_object_set_description (accessible, gs_app_get_summary (tile->app));
}
diff --git a/src/gs-summary-tile.c b/src/gs-summary-tile.c
index 720a438..ddbe541 100644
--- a/src/gs-summary-tile.c
+++ b/src/gs-summary-tile.c
@@ -91,7 +91,7 @@ app_state_changed_idle (gpointer user_data)
gtk_widget_set_visible (tile->eventbox, installed);
- if (GTK_IS_ACCESSIBLE (accessible)) {
+ if (GTK_IS_ACCESSIBLE (accessible) && name != NULL) {
atk_object_set_name (accessible, name);
atk_object_set_description (accessible, gs_app_get_summary (tile->app));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]