aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-11-10 13:33:06 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-11-10 13:33:06 +0100
commitc118af39da408c252613a5a63d9f51e8d8f39928 (patch)
tree8e9f8846966d3378dc8b3fcdf42f13c7f0c367b4 /src
parent71b39fb0df9b444da73ac420146a71fecfbc6efd (diff)
parent40e310ba6872a0ddc29f5ff3ba9cc805c60ed4a9 (diff)
downloadlibayatana-indicator-c118af39da408c252613a5a63d9f51e8d8f39928.tar.gz
libayatana-indicator-c118af39da408c252613a5a63d9f51e8d8f39928.tar.bz2
libayatana-indicator-c118af39da408c252613a5a63d9f51e8d8f39928.zip
Merge branch 'tari01-pr/check-menu-item-name-null'
Attributes GH PR #61: https://github.com/AyatanaIndicators/libayatana-indicator/pull/61
Diffstat (limited to 'src')
-rw-r--r--src/indicator-ng.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/indicator-ng.c b/src/indicator-ng.c
index f057600..6739584 100644
--- a/src/indicator-ng.c
+++ b/src/indicator-ng.c
@@ -1,5 +1,6 @@
/*
* Copyright 2013 Canonical Ltd.
+ * Copyright 2021 Robert tari
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as published
@@ -15,6 +16,7 @@
*
* Authors:
* Lars Uebernickel <lars.uebernickel@canonical.com>
+ * Robert Tari <robert@tari.in>
*/
#include "indicator-ng.h"
@@ -244,7 +246,7 @@ static gboolean indicator_ng_menu_insert_idos(IndicatorNg *self, GMenuModel *pSe
GtkWidget *pMenuItemOld = GTK_WIDGET(g_list_nth_data(lMenuItems, nMenuItem));
const gchar *sName = gtk_widget_get_name(pMenuItemOld);
- if (!g_str_equal(sName, sType))
+ if (sName != NULL && !g_str_equal(sName, sType))
{
GActionGroup *pActionGroup = (GActionGroup*)g_object_get_qdata(G_OBJECT(self->entry.menu), m_pActionMuxer);
GMenuItem *pMenuModelItem = g_menu_item_new_from_model(pSection, nModelItem);