[gnome-panel] panel-util: fix build warnings



commit 1a8bba13b6e667442c5409ac4cd17106bd27812f
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Sep 27 00:06:25 2015 +0300

    panel-util: fix build warnings

 gnome-panel/libpanel-util/panel-glib.c         |    2 +-
 gnome-panel/libpanel-util/panel-icon-chooser.c |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gnome-panel/libpanel-util/panel-glib.c b/gnome-panel/libpanel-util/panel-glib.c
index cad091c..ec9c87c 100644
--- a/gnome-panel/libpanel-util/panel-glib.c
+++ b/gnome-panel/libpanel-util/panel-glib.c
@@ -138,7 +138,7 @@ panel_g_utf8_strstrcase (const char *haystack, const char *needle)
        for (p = _unicode_get_utf8 (o, &unival);
             p && unival;
             p = _unicode_get_utf8 (p, &unival)) {
-               gint sc;
+               gunichar sc;
                sc = g_unichar_tolower (unival);
                /* We have valid stripped char */
                if (sc == nuni[0]) {
diff --git a/gnome-panel/libpanel-util/panel-icon-chooser.c b/gnome-panel/libpanel-util/panel-icon-chooser.c
index 030afb3..39d6d4d 100644
--- a/gnome-panel/libpanel-util/panel-icon-chooser.c
+++ b/gnome-panel/libpanel-util/panel-icon-chooser.c
@@ -400,10 +400,10 @@ _panel_icon_chooser_clicked (GtkButton *button)
                                              path, NULL);
        g_free (path);
 
+       path = NULL;
        filechooser_path_set = FALSE;
 
        if (chooser->priv->icon) {
-               char *path = NULL;
                if (g_path_is_absolute (chooser->priv->icon)) {
                        path = g_strdup (chooser->priv->icon);
                } else {
@@ -436,7 +436,6 @@ _panel_icon_chooser_clicked (GtkButton *button)
        }
 
        if (!filechooser_path_set) {
-               char *path;
                // FIXME? Use current icon theme? But there might not be a lot
                // of icons there...
                path = g_build_filename (DATADIR, "icons", NULL);


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