[beast: 32/43] SFI: use Bse::warning() for runtime warnings



commit 99f1cd6123305c7e1ba6b00db72e359a50fb918c
Author: Tim Janik <timj gnu org>
Date:   Sun Jun 25 19:42:57 2017 +0200

    SFI: use Bse::warning() for runtime warnings
    
    Signed-off-by: Tim Janik <timj gnu org>

 sfi/sfiparams.cc  |    6 +++---
 sfi/sfiring.cc    |    2 +-
 sfi/sfistore.cc   |   14 +++++++-------
 sfi/sfiwrapper.cc |    2 +-
 4 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/sfi/sfiparams.cc b/sfi/sfiparams.cc
index d7eac41..81943e9 100644
--- a/sfi/sfiparams.cc
+++ b/sfi/sfiparams.cc
@@ -817,7 +817,7 @@ sfi_enum_type_set_choice_value_getter (GType                 gtype,
 {
   assert_return (G_TYPE_IS_ENUM (gtype));
   if (g_type_get_qdata (gtype, quark_tmp_choice_values) != NULL)
-    g_warning ("%s: unsetting choice value getter of type `%s' while keeping old choice value references", 
__func__, g_type_name (gtype));
+    Bse::warning ("%s: unsetting choice value getter of type `%s' while keeping old choice value 
references", __func__, g_type_name (gtype));
   g_type_set_qdata (gtype, quark_enum_choice_value_getter, (void*) cvgetter);
 }
 
@@ -1075,8 +1075,8 @@ sfi_pspec_to_serializable (GParamSpec *xpspec)
     pspec = sfi_pspec_proxy_from_object (xpspec);
 
   if (!pspec)
-    g_warning ("%s: unable to convert non serializable pspec \"%s\" of type `%s'",
-               G_STRLOC, xpspec->name, g_type_name (G_PARAM_SPEC_VALUE_TYPE (xpspec)));
+    Bse::warning ("%s: unable to convert non serializable pspec \"%s\" of type `%s'",
+                  G_STRLOC, xpspec->name, g_type_name (G_PARAM_SPEC_VALUE_TYPE (xpspec)));
 
   return pspec;
 }
diff --git a/sfi/sfiring.cc b/sfi/sfiring.cc
index 1be2fb7..86191bf 100644
--- a/sfi/sfiring.cc
+++ b/sfi/sfiring.cc
@@ -338,7 +338,7 @@ sfi_ring_remove (SfiRing *head,
     if (walk->data == data)
       return sfi_ring_remove_node (head, walk);
 
-  /* g_warning (G_STRLOC ": couldn't find data item (%p) to remove from ring (%p)", data, head); */
+  /* Bse::warning (G_STRLOC ": couldn't find data item (%p) to remove from ring (%p)", data, head); */
 
   return head;
 }
diff --git a/sfi/sfistore.cc b/sfi/sfistore.cc
index 485bbcd..40485bc 100644
--- a/sfi/sfistore.cc
+++ b/sfi/sfistore.cc
@@ -195,9 +195,9 @@ sfi_wstore_put_param (SfiWStore        *wstore,
       g_string_free (gstring, TRUE);
     }
   else
-    g_warning ("unable to transform \"%s\" of type `%s' to `%s'",
-              pspec->name, g_type_name (G_PARAM_SPEC_VALUE_TYPE (pspec)),
-              g_type_name (G_VALUE_TYPE (&svalue)));
+    Bse::warning ("unable to transform \"%s\" of type `%s' to `%s'",
+                  pspec->name, g_type_name (G_PARAM_SPEC_VALUE_TYPE (pspec)),
+                  g_type_name (G_VALUE_TYPE (&svalue)));
   g_value_unset (&svalue);
   g_param_spec_unref (spspec);
 }
@@ -598,9 +598,9 @@ sfi_rstore_parse_param (SfiRStore  *rstore,
        }
       else
        {
-         g_warning ("unable to transform \"%s\" of type `%s' to `%s'",
-                    pspec->name, g_type_name (G_VALUE_TYPE (&pvalue)),
-                    g_type_name (G_VALUE_TYPE (value)));
+         Bse::warning ("unable to transform \"%s\" of type `%s' to `%s'",
+                        pspec->name, g_type_name (G_VALUE_TYPE (&pvalue)),
+                        g_type_name (G_VALUE_TYPE (value)));
          return G_TOKEN_ERROR;
        }
       g_value_unset (&pvalue);
@@ -766,7 +766,7 @@ sfi_rstore_parse_until (SfiRStore     *rstore,
           if (saved_line != scanner->line || saved_position != scanner->position ||
               scanner->next_token != G_TOKEN_IDENTIFIER)
             {
-              g_warning ("((SfiStoreParser)%p) advanced scanner for unmatched token", try_statement);
+              Bse::warning ("((SfiStoreParser)%p) advanced scanner for unmatched token", try_statement);
               return G_TOKEN_ERROR;
             }
           expected_token = sfi_rstore_warn_skip (rstore,
diff --git a/sfi/sfiwrapper.cc b/sfi/sfiwrapper.cc
index f43533f..302b92f 100644
--- a/sfi/sfiwrapper.cc
+++ b/sfi/sfiwrapper.cc
@@ -31,5 +31,5 @@ void
 sfi_url_show (const char *url)
 {
   if (!Rapicorn::url_show (url))
-    g_warning ("Failed to start browser for URL: %s", url);
+    Bse::warning ("Failed to start browser for URL: %s", url);
 }


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