soylent r49 - trunk/src



Author: treitter
Date: Sun Jan 13 04:47:55 2008
New Revision: 49
URL: http://svn.gnome.org/viewvc/soylent?rev=49&view=rev

Log:
change critical error messages (mostly inaccessible widgets) from g_warning() to g_critical()

Modified:
   trunk/src/soylent-browser-person-view.c
   trunk/src/soylent-browser.c

Modified: trunk/src/soylent-browser-person-view.c
==============================================================================
--- trunk/src/soylent-browser-person-view.c	(original)
+++ trunk/src/soylent-browser-person-view.c	Sun Jan 13 04:47:55 2008
@@ -171,19 +171,23 @@
                             }
                           else
                             {
-                              g_warning ("Could not commit changes to address book: %s",
-                                        error ? error->message : "no error given");
+                              g_warning ("Could not commit changes to address "
+                                         "book: %s",
+                                          error ? error->message
+                                                : "no error given");
                               g_clear_error (&error);
                             }
                         }
                       else
                         {
-                          g_warning ("failed to get SoylentPerson from EContact");
+                          g_warning ("failed to get SoylentPerson from "
+                                     "EContact");
                         }
                     }
                   else
                     {
-                      g_warning ("failed to get the EBookView for the SoylentBrowser");
+                      g_warning ("failed to get the EBookView for the "
+                                 "SoylentBrowser");
                     }
                 }
               else
@@ -927,7 +931,7 @@
   wtree = soylent_browser_get_widget_tree (browser);
   if (wtree && GLADE_IS_XML (wtree))
     {
-      window_person_view = (glade_xml_get_widget (wtree, "window_person_view")); 
+      window_person_view = (glade_xml_get_widget (wtree, "window_person_view"));
       if (window_person_view && GTK_IS_WIDGET (window_person_view))
         {
           gtk_widget_hide (window_person_view);

Modified: trunk/src/soylent-browser.c
==============================================================================
--- trunk/src/soylent-browser.c	(original)
+++ trunk/src/soylent-browser.c	Sun Jan 13 04:47:55 2008
@@ -194,33 +194,33 @@
                             }
                           else
                             {
-                              g_warning ("failed to set up EBook (address "
-                                         "book)");
+                              g_critical ("failed to set up EBook (address "
+                                          "book)");
                             }
                         }
                       else
                         {
-                          g_warning ("failed to set up major widgets");
+                          g_critical ("failed to set up major widgets");
                         }
                     }
                   else
                     {
-                      g_warning ("failed to set up major GObject signals");
+                      g_critical ("failed to set up major GObject signals");
                     }
                 }
               else
                 {
-                  g_warning ("failed to allocate pending edits hash table");
+                  g_critical ("failed to allocate pending edits hash table");
                 }
             }
           else
             {
-              g_warning ("unable to get default GTK theme");
+              g_critical ("unable to get default GTK theme");
             }
         }
       else
         {
-          g_warning ("unable to load glade file");
+          g_critical ("unable to load glade file");
         }
     }
 
@@ -392,7 +392,7 @@
     }
   else
     {
-      g_warning ("SoylentBrowser's widget tree is invalid");
+      g_critical ("SoylentBrowser's widget tree is invalid");
     }
 
   return retval;
@@ -550,12 +550,12 @@
         }
       else
         {
-          g_warning ("failed to get main icon view widget");
+          g_critical ("failed to get main icon view widget");
         }
     }
   else
     {
-      g_warning ("SoylentBrowser's widget tree is invalid");
+      g_critical ("SoylentBrowser's widget tree is invalid");
     }
 
   return retval;
@@ -679,12 +679,12 @@
         }
       else
         {
-          g_warning ("main icon view widget is invalid");
+          g_critical ("main icon view widget is invalid");
         }
     }
   else
     {
-      g_warning ("SoylentBrowser's widget tree is invalid");
+      g_critical ("SoylentBrowser's widget tree is invalid");
     }
  
   return retval;
@@ -1011,7 +1011,7 @@
     }
   else
     {
-      g_warning ("SoylentBrowser's widget tree is invalid");
+      g_critical ("SoylentBrowser's widget tree is invalid");
     }
 
   return retval;
@@ -1072,22 +1072,22 @@
                 }
               else
                 {
-                  g_warning ("icon view iterator is NULL");
+                  g_critical ("icon view iterator is NULL");
                 }
             }
           else
             {
-              g_warning ("icon view's model is NULL");
+              g_critical ("icon view's model is NULL");
             }
         }
       else
         {
-          g_warning ("SoylentBrowser's main icon view is invalid");
+          g_critical ("SoylentBrowser's main icon view is invalid");
         }
     }
   else
     {
-      g_warning ("SoylentBrowser's widget tree is invalid");
+      g_critical ("SoylentBrowser's widget tree is invalid");
     }
 
   return retval;
@@ -1187,7 +1187,8 @@
                         }
                       else
                         {
-                          g_warning ("failed to get main icon view's iterator");
+                          g_critical ("failed to get main icon view's "
+                                      "iterator");
                         }
                     }
                   else
@@ -1207,12 +1208,12 @@
         }
       else
         {
-          g_warning ("main icon view's model is invalid");
+          g_critical ("main icon view's model is invalid");
         }
     }
   else
     {
-      g_warning ("failed to get main icon view widget");
+      g_critical ("failed to get main icon view widget");
     }
 
   return retval;
@@ -1430,7 +1431,7 @@
     }
   else
     {
-      g_warning ("Got error %d when getting book view", status);
+      g_critical ("Got error %d when getting book view", status);
     }
 }
 
@@ -1452,7 +1453,7 @@
     }
   else
     {
-      g_warning ("Got error %d when opening book", status);
+      g_critical ("Got error %d when opening book", status);
     }
 }
 



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