[dia] Get rid of deprecated g_strcasecmp



commit f4a58d58fdf086c5b1affd11afd65d64e7f45512
Author: Hans Breuer <hans breuer org>
Date:   Fri Jul 31 18:57:57 2009 +0200

    Get rid of deprecated g_strcasecmp

 app/interface.c             |    2 +-
 app/menus.c                 |    2 +-
 plug-ins/xfig/xfig-import.c |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/interface.c b/app/interface.c
index 445f250..1ed45d8 100644
--- a/app/interface.c
+++ b/app/interface.c
@@ -1206,7 +1206,7 @@ get_sheet_by_name(const gchar *name)
     /* There is something fishy with comparing both forms: the english and the localized one.
      * But we should be on the safe side here, especially when bug #328570 gets tackled.
      */
-    if (0 == g_strcasecmp(name, sheet->name) || 0 == g_strcasecmp(name, gettext(sheet->name)))
+    if (0 == g_ascii_strcasecmp(name, sheet->name) || 0 == g_ascii_strcasecmp(name, gettext(sheet->name)))
       return sheet;
   }
   return NULL;
diff --git a/app/menus.c b/app/menus.c
index 81bd30b..a49b040 100644
--- a/app/menus.c
+++ b/app/menus.c
@@ -491,7 +491,7 @@ integrated_ui_toolbar_zoom_combo_selection_changed (GtkComboBox *combo,
         {
             view_zoom_set (zoom_percent * 10.0);
         }
-        else if (g_strcasecmp (text, ZOOM_FIT) == 0)
+        else if (g_ascii_strcasecmp (text, ZOOM_FIT) == 0)
         {
             view_show_all_callback (NULL);
         }
diff --git a/plug-ins/xfig/xfig-import.c b/plug-ins/xfig/xfig-import.c
index faa6ab6..1c78097 100644
--- a/plug-ins/xfig/xfig-import.c
+++ b/plug-ins/xfig/xfig-import.c
@@ -1127,8 +1127,8 @@ fig_read_line_choice(FILE *file, char *choice1, char *choice2) {
 
     buf[strlen(buf)-1] = 0; /* Remove trailing newline */
     g_strstrip(buf); /* And any other whitespace */
-    if (!g_strcasecmp(buf, choice1)) return 0;
-    if (!g_strcasecmp(buf, choice2)) return 1;
+    if (!g_ascii_strcasecmp(buf, choice1)) return 0;
+    if (!g_ascii_strcasecmp(buf, choice2)) return 1;
     message_warning(_("`%s' is not one of `%s' or `%s'\n"), buf, choice1, choice2);
     return 0;
 }



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