summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2012-04-30 17:05:15 +0100
committerBastien Nocera <hadess@hadess.net>2012-04-30 17:12:36 +0100
commit9ea497b0c506f6046efe9961e5dd1e9fd2f080b3 (patch)
tree15896782d05c10156308a4906fbd7be0c2c2b385
parent6b690fa64a55d04b0a283984e778b5ed9c69f894 (diff)
downloadgnome-control-center-9ea497b0c506f6046efe9961e5dd1e9fd2f080b3.tar.gz
shell: Add return value to activate_panel()
-rw-r--r--shell/gnome-control-center.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index 01f80fb73..468ef7132 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -104,7 +104,7 @@ get_icon_name_from_g_icon (GIcon *gicon)
return NULL;
}
-static void
+static gboolean
activate_panel (GnomeControlCenter *shell,
const gchar *id,
const gchar **argv,
@@ -125,9 +125,9 @@ activate_panel (GnomeControlCenter *shell,
panels = g_io_extension_point_get_extensions (priv->extension_point);
if (!desktop_file)
- return;
+ return FALSE;
if (!id)
- return;
+ return FALSE;
for (l = panels; l != NULL; l = l->next)
{
@@ -148,7 +148,7 @@ activate_panel (GnomeControlCenter *shell,
if (panel_type == G_TYPE_INVALID)
{
g_warning ("Could not find the loadable module for panel '%s'", id);
- return;
+ return FALSE;
}
/* create the panel plugin */
@@ -191,6 +191,8 @@ activate_panel (GnomeControlCenter *shell,
nat_height);
priv->current_panel = box;
+
+ return TRUE;
}
static void