summaryrefslogtreecommitdiff
path: root/applets/wncklet
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2018-07-25 12:39:14 -0400
committerVictor Kareh <[email protected]>2018-07-25 14:23:47 -0400
commitf2f4d84492425428806e0b2d940b6b270c0d3bd5 (patch)
tree40bc79e25ee0c01561653781844fcd6fa44e4e58 /applets/wncklet
parentb37f24ea4aabd954b7c7810a681ec8fc62c65631 (diff)
downloadmate-panel-f2f4d84492425428806e0b2d940b6b270c0d3bd5.tar.bz2
mate-panel-f2f4d84492425428806e0b2d940b6b270c0d3bd5.tar.xz
applets: Fix runtime error messages
Diffstat (limited to 'applets/wncklet')
-rw-r--r--applets/wncklet/workspace-switcher.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/applets/wncklet/workspace-switcher.c b/applets/wncklet/workspace-switcher.c
index 914653ac..13f18bd9 100644
--- a/applets/wncklet/workspace-switcher.c
+++ b/applets/wncklet/workspace-switcher.c
@@ -120,7 +120,8 @@ static void update_properties_for_wm(PagerData* pager)
gtk_widget_show(pager->workspace_names_scroll);
if (pager->display_workspaces_toggle)
gtk_widget_show(pager->display_workspaces_toggle);
- g_object_set (pager->cell, "editable", TRUE, NULL);
+ if (pager->cell)
+ g_object_set (pager->cell, "editable", TRUE, NULL);
break;
case PAGER_WM_METACITY:
if (pager->workspaces_frame)
@@ -131,7 +132,8 @@ static void update_properties_for_wm(PagerData* pager)
gtk_widget_show(pager->workspace_names_scroll);
if (pager->display_workspaces_toggle)
gtk_widget_show(pager->display_workspaces_toggle);
- g_object_set (pager->cell, "editable", TRUE, NULL);
+ if (pager->cell)
+ g_object_set (pager->cell, "editable", TRUE, NULL);
break;
case PAGER_WM_I3:
if (pager->workspaces_frame)
@@ -144,7 +146,8 @@ static void update_properties_for_wm(PagerData* pager)
gtk_widget_hide(pager->workspace_names_scroll);
if (pager->display_workspaces_toggle)
gtk_widget_show(pager->display_workspaces_toggle);
- g_object_set (pager->cell, "editable", FALSE, NULL);
+ if (pager->cell)
+ g_object_set (pager->cell, "editable", FALSE, NULL);
break;
case PAGER_WM_COMPIZ:
if (pager->workspaces_frame)
@@ -155,7 +158,8 @@ static void update_properties_for_wm(PagerData* pager)
gtk_widget_hide(pager->workspace_names_scroll);
if (pager->display_workspaces_toggle)
gtk_widget_hide(pager->display_workspaces_toggle);
- g_object_set (pager->cell, "editable", FALSE, NULL);
+ if (pager->cell)
+ g_object_set (pager->cell, "editable", FALSE, NULL);
break;
case PAGER_WM_UNKNOWN:
if (pager->workspaces_frame)