[gnome-control-center] shell: Add return value to activate_panel()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] shell: Add return value to activate_panel()
- Date: Wed, 9 May 2012 15:10:40 +0000 (UTC)
commit cdbd37fa47a7244e9aaba1cd03936677a7541bc7
Author: Bastien Nocera <hadess hadess net>
Date: Mon Apr 30 17:05:15 2012 +0100
shell: Add return value to activate_panel()
shell/gnome-control-center.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index fbd0418..e5f12de 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -109,7 +109,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,
@@ -129,9 +129,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)
{
@@ -152,7 +152,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 */
@@ -181,6 +181,8 @@ activate_panel (GnomeControlCenter *shell,
gtk_window_set_icon_name (GTK_WINDOW (priv->window), icon_name);
priv->current_panel = box;
+
+ return TRUE;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]