changeset 3372:1b0db603df9d trunk

minor adjustments
author Giacomo Lozito <james@develia.org>
date Sun, 19 Aug 2007 14:57:20 +0200
parents 973cf1ae043a
children 706e85734317
files src/audacious/ui_manager.c
diffstat 1 files changed, 2 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_manager.c	Sun Aug 19 14:39:05 2007 +0200
+++ b/src/audacious/ui_manager.c	Sun Aug 19 14:57:20 2007 +0200
@@ -797,7 +797,6 @@
   {
     GtkWidget *plugins_menu = NULL;
     GtkWidget *plugins_menu_item = audacious_menu_plugin_menuwid( menu_id );
-
     if ( plugins_menu_item )
     {
       gint ic = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(plugins_menu_item),"ic"));
@@ -816,11 +815,8 @@
       g_object_set_data( G_OBJECT(plugins_menu_item) , "ic" , GINT_TO_POINTER(++ic) );
       return 0; /* success */
     }
-    else
-      return -1;
   }
-  else
-    return -1;
+  return -1; /* failure */
 }
 
 
@@ -831,7 +827,6 @@
   {
     GtkWidget *plugins_menu = NULL;
     GtkWidget *plugins_menu_item = audacious_menu_plugin_menuwid( menu_id );
-
     if ( plugins_menu_item )
     {
       gint ic = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(plugins_menu_item),"ic"));
@@ -851,15 +846,8 @@
           }
           return 0; /* success */
         }
-        else
-          return -1;
       }
-      else
-        return -1;
     }
-    else
-      return -1;
   }
-  else
-    return -1;
+  return -1; /* failure */
 }