aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-08-13 13:13:30 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-08-13 13:13:30 +0200
commit573e40f532ffe72f2d2e33b560039c4bd9909c4b (patch)
tree84084a0d86d0fc90394443261fbf3e40db1b91b0
parent27f00a52a6d0b1c51c874009616b0488e322c7da (diff)
parentf0ee1dfa0c369466c1d2e109252bcda0f5464009 (diff)
downloadlibayatana-indicator-573e40f532ffe72f2d2e33b560039c4bd9909c4b.tar.gz
libayatana-indicator-573e40f532ffe72f2d2e33b560039c4bd9909c4b.tar.bz2
libayatana-indicator-573e40f532ffe72f2d2e33b560039c4bd9909c4b.zip
Merge branch 'tari01-pr/ido-insertion-error-handling'
Attributes GH PR #14: https://github.com/AyatanaIndicators/libayatana-indicator/pull/14
-rw-r--r--libayatana-indicator/indicator-ng.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libayatana-indicator/indicator-ng.c b/libayatana-indicator/indicator-ng.c
index 8ede1a6..c0e85e5 100644
--- a/libayatana-indicator/indicator-ng.c
+++ b/libayatana-indicator/indicator-ng.c
@@ -265,6 +265,11 @@ static gboolean indicator_ng_menu_insert_idos(IndicatorNg *self, GMenuModel *pSe
bChanged = TRUE;
}
+ if (pMenuItemNew == NULL)
+ {
+ pMenuItemNew = GTK_MENU_ITEM(gtk_menu_item_new_with_label("Failed to create IDO object"));
+ }
+
gtk_widget_set_name(GTK_WIDGET(pMenuItemNew), sType);
gtk_widget_show(GTK_WIDGET(pMenuItemNew));
gtk_container_remove(GTK_CONTAINER(self->entry.menu), pMenuItemOld);