[gnome-control-center] shell: ensure valid data when loading the panel
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] shell: ensure valid data when loading the panel
- Date: Tue, 26 Jul 2016 15:00:22 +0000 (UTC)
commit 4aee781ab62ae6774047f74385d8101f84d5bfdb
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Jul 26 11:59:07 2016 -0300
shell: ensure valid data when loading the panel
When loading a given panel, make sure we have a valid
panel before setting the sidelist.
This is a follow-up fix per request in bug [1].
[1] https://bugzilla.gnome.org/show_bug.cgi?id=769063
shell/alt/cc-panel-list.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/shell/alt/cc-panel-list.c b/shell/alt/cc-panel-list.c
index 393e6b7..902056c 100644
--- a/shell/alt/cc-panel-list.c
+++ b/shell/alt/cc-panel-list.c
@@ -829,6 +829,9 @@ cc_panel_list_set_active_panel (CcPanelList *self,
g_return_if_fail (CC_IS_PANEL_LIST (self));
data = g_hash_table_lookup (self->id_to_data, id);
+
+ g_assert (data != NULL);
+
listbox = gtk_widget_get_parent (data->row);
gtk_list_box_select_row (GTK_LIST_BOX (listbox), GTK_LIST_BOX_ROW (data->row));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]