Trim trailing white spaces on empty lines.
[geeqie.git] / src / pan-item.c
index 2dca820..b4539a7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Geeqie
  * (C) 2006 John Ellis
- * Copyright (C) 2008 The Geeqie Team
+ * Copyright (C) 2008 - 2012 The Geeqie Team
  *
  * Author: John Ellis
  *
@@ -450,6 +450,7 @@ PanItem *pan_item_thumb_new(PanWindow *pw, FileData *fd, gint x, gint y)
        PanItem *pi;
 
        pi = g_new0(PanItem, 1);
+
        pi->type = PAN_ITEM_THUMB;
        pi->fd = fd;
        pi->x = x;
@@ -457,10 +458,6 @@ PanItem *pan_item_thumb_new(PanWindow *pw, FileData *fd, gint x, gint y)
        pi->width = PAN_THUMB_SIZE + PAN_SHADOW_OFFSET * 2;
        pi->height = PAN_THUMB_SIZE + PAN_SHADOW_OFFSET * 2;
 
-       pi->pixbuf = NULL;
-
-       pi->queued = FALSE;
-
        pw->list = g_list_prepend(pw->list, pi);
 
        return pi;
@@ -725,7 +722,7 @@ PanItem *pan_item_find_by_key(PanWindow *pw, PanItemType type, const gchar *key)
 /* when ignore_case and partial are TRUE, path should be converted to lower case */
 static GList *pan_item_find_by_path_l(GList *list, GList *search_list,
                                      PanItemType type, const gchar *path,
-                                     gint ignore_case, gint partial)
+                                     gboolean ignore_case, gboolean partial)
 {
        GList *work;
 
@@ -737,7 +734,7 @@ static GList *pan_item_find_by_path_l(GList *list, GList *search_list,
                pi = work->data;
                if ((pi->type == type || type == PAN_ITEM_NONE) && pi->fd)
                        {
-                       gint match = FALSE;
+                       gboolean match = FALSE;
 
                        if (path[0] == G_DIR_SEPARATOR)
                                {
@@ -762,7 +759,7 @@ static GList *pan_item_find_by_path_l(GList *list, GList *search_list,
                                        }
                                else if (ignore_case)
                                        {
-                                       if (strcasecmp(path, pi->fd->name) == 0) match = TRUE;
+                                       if (g_ascii_strcasecmp(path, pi->fd->name) == 0) match = TRUE;
                                        }
                                else
                                        {
@@ -780,7 +777,7 @@ static GList *pan_item_find_by_path_l(GList *list, GList *search_list,
 
 /* when ignore_case and partial are TRUE, path should be converted to lower case */
 GList *pan_item_find_by_path(PanWindow *pw, PanItemType type, const gchar *path,
-                            gint ignore_case, gint partial)
+                            gboolean ignore_case, gboolean partial)
 {
        GList *list = NULL;
 
@@ -794,7 +791,7 @@ GList *pan_item_find_by_path(PanWindow *pw, PanItemType type, const gchar *path,
 }
 
 GList *pan_item_find_by_fd(PanWindow *pw, PanItemType type, FileData *fd,
-                            gint ignore_case, gint partial)
+                          gboolean ignore_case, gboolean partial)
 {
        if (!fd) return NULL;
        return pan_item_find_by_path(pw, type, fd->path, ignore_case, partial);
@@ -849,8 +846,6 @@ PanTextAlignment *pan_text_alignment_new(PanWindow *pw, gint x, gint y, const gc
        ta = g_new0(PanTextAlignment, 1);
 
        ta->pw = pw;
-       ta->column1 = NULL;
-       ta->column2 = NULL;
        ta->x = x;
        ta->y = y;
        ta->key = g_strdup(key);
@@ -968,3 +963,4 @@ void pan_text_alignment_calc(PanTextAlignment *ta, PanItem *box)
                y += height;
                }
 }
+/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */