[libadwaita/wip/exalm/shaders: 4/4] Use warning instead of critical when failing to compile shaders




commit 703407281a661ec2b731189cb2120f3c69b56173
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu Jul 28 15:08:27 2022 +0400

    Use warning instead of critical when failing to compile shaders
    
    We have fallbacks everywhere, so this is perfectly recoverable.

 src/adw-fading-label.c  | 2 +-
 src/adw-indicator-bin.c | 2 +-
 src/adw-tab-box.c       | 2 +-
 src/adw-tab.c           | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/adw-fading-label.c b/src/adw-fading-label.c
index 7ad10215..be1e481d 100644
--- a/src/adw-fading-label.c
+++ b/src/adw-fading-label.c
@@ -76,7 +76,7 @@ ensure_shader (AdwFadingLabel *self)
     /* If shaders aren't supported, the error doesn't matter and we just
      * silently fall back */
     if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED))
-      g_critical ("Couldn't compile shader: %s\n", error->message);
+      g_warning ("Couldn't compile shader: %s\n", error->message);
   }
 
   g_clear_error (&error);
diff --git a/src/adw-indicator-bin.c b/src/adw-indicator-bin.c
index 65ff38e3..5f9cb949 100644
--- a/src/adw-indicator-bin.c
+++ b/src/adw-indicator-bin.c
@@ -78,7 +78,7 @@ ensure_shader (AdwIndicatorBin *self)
     /* If shaders aren't supported, the error doesn't matter and we just
      * silently fall back */
     if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED))
-      g_critical ("Couldn't compile shader: %s\n", error->message);
+      g_warning ("Couldn't compile shader: %s\n", error->message);
   }
 
   g_clear_error (&error);
diff --git a/src/adw-tab-box.c b/src/adw-tab-box.c
index bfb69e82..ddeee9f9 100644
--- a/src/adw-tab-box.c
+++ b/src/adw-tab-box.c
@@ -3267,7 +3267,7 @@ ensure_shader (AdwTabBox *self)
     /* If shaders aren't supported, the error doesn't matter and we just
      * silently fall back */
     if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED))
-      g_critical ("Couldn't compile shader: %s\n", error->message);
+      g_warning ("Couldn't compile shader: %s\n", error->message);
   }
 
   g_clear_error (&error);
diff --git a/src/adw-tab.c b/src/adw-tab.c
index 3c9d71ca..d611c7be 100644
--- a/src/adw-tab.c
+++ b/src/adw-tab.c
@@ -346,7 +346,7 @@ ensure_shader (AdwTab *self)
     /* If shaders aren't supported, the error doesn't matter and we just
      * silently fall back */
     if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED))
-      g_critical ("Couldn't compile shader: %s\n", error->message);
+      g_warning ("Couldn't compile shader: %s\n", error->message);
   }
 
   g_clear_error (&error);


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