[gnome-control-center/wip/animated-notebook: 4/9] shell: Add return value to activate_panel()



commit 9ea497b0c506f6046efe9961e5dd1e9fd2f080b3
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 01f80fb..468ef71 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]