[Xfce4-commits] <ristretto:master> Resolve compile-warnings

Stephan Arts noreply at xfce.org
Mon Apr 23 20:56:01 CEST 2012


Updating branch refs/heads/master
         to bab198275ceb0c517dfbc54e2bfc93e73f845cc2 (commit)
       from 85a8a2bd9e0dc310f3669c5a6008d19acefcda8d (commit)

commit bab198275ceb0c517dfbc54e2bfc93e73f845cc2
Author: Stephan Arts <stephan at xfce.org>
Date:   Mon Apr 23 20:55:41 2012 +0200

    Resolve compile-warnings

 src/main_window.c        |   12 ++++++------
 src/preferences_dialog.c |    4 ++--
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/main_window.c b/src/main_window.c
index cb5c182..3bc2fd7 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -786,17 +786,17 @@ rstto_main_window_init (RsttoMainWindow *window)
     desktop_type = rstto_settings_get_string_property (window->priv->settings_manager, "desktop-type");
     if (desktop_type)
     {
-        if (!g_strcasecmp(desktop_type, "xfce"))
+        if (!g_ascii_strcasecmp(desktop_type, "xfce"))
         {
             window->priv->wallpaper_manager = rstto_xfce_wallpaper_manager_new();
         }
 
-        if (!g_strcasecmp(desktop_type, "gnome"))
+        if (!g_ascii_strcasecmp(desktop_type, "gnome"))
         {
             window->priv->wallpaper_manager = rstto_gnome_wallpaper_manager_new();
         }
 
-        if (!g_strcasecmp(desktop_type, "none"))
+        if (!g_ascii_strcasecmp(desktop_type, "none"))
         {
             window->priv->wallpaper_manager = NULL;
         }
@@ -4064,17 +4064,17 @@ cb_rstto_desktop_type_changed (
 
     if (desktop_type)
     {
-        if (!g_strcasecmp(desktop_type, "xfce"))
+        if (!g_ascii_strcasecmp(desktop_type, "xfce"))
         {
             window->priv->wallpaper_manager = rstto_xfce_wallpaper_manager_new();
         }
 
-        if (!g_strcasecmp(desktop_type, "gnome"))
+        if (!g_ascii_strcasecmp(desktop_type, "gnome"))
         {
             window->priv->wallpaper_manager = rstto_gnome_wallpaper_manager_new();
         }
 
-        if (!g_strcasecmp(desktop_type, "none"))
+        if (!g_ascii_strcasecmp(desktop_type, "none"))
         {
             window->priv->wallpaper_manager = NULL;
         }
diff --git a/src/preferences_dialog.c b/src/preferences_dialog.c
index 7616574..4afd61a 100644
--- a/src/preferences_dialog.c
+++ b/src/preferences_dialog.c
@@ -389,7 +389,7 @@ rstto_preferences_dialog_init(RsttoPreferencesDialog *dialog)
 
     if (str_desktop_type != NULL)
     {
-        if (0 == g_strcasecmp (str_desktop_type, "xfce"))
+        if (0 == g_ascii_strcasecmp (str_desktop_type, "xfce"))
         {
             gtk_combo_box_set_active (
                 GTK_COMBO_BOX (dialog->priv->behaviour_tab.choose_desktop_combo_box),
@@ -397,7 +397,7 @@ rstto_preferences_dialog_init(RsttoPreferencesDialog *dialog)
         }
         else
         {
-            if (0 == g_strcasecmp (str_desktop_type, "gnome"))
+            if (0 == g_ascii_strcasecmp (str_desktop_type, "gnome"))
             {
                 gtk_combo_box_set_active (
                     GTK_COMBO_BOX (dialog->priv->behaviour_tab.choose_desktop_combo_box),


More information about the Xfce4-commits mailing list