* Add 64 pixel icons for priority/attachment flag column.
authorJavier Fernandez Garcia-Boente <jfernandez@igalia.com>
Fri, 20 Apr 2007 20:32:25 +0000 (20:32 +0000)
committerJavier Fernandez Garcia-Boente <jfernandez@igalia.com>
Fri, 20 Apr 2007 20:32:25 +0000 (20:32 +0000)
* Remove old code about pango conversion, because an optimized
method is defined in modest-text-utils.c.

pmo-trunk-r1622

src/maemo/pixmaps/qgn_list_gene_high_attacpap.png [new file with mode: 0644]
src/maemo/pixmaps/qgn_list_gene_low_attacpap.png [new file with mode: 0644]
src/maemo/pixmaps/qgn_list_gene_norm_attacpap.png [new file with mode: 0644]
src/maemo/pixmaps/qgn_list_messaging_high_noatt.png [new file with mode: 0644]
src/maemo/pixmaps/qgn_list_messaging_low_noatt.png [new file with mode: 0644]
src/widgets/modest-header-view-render.c

diff --git a/src/maemo/pixmaps/qgn_list_gene_high_attacpap.png b/src/maemo/pixmaps/qgn_list_gene_high_attacpap.png
new file mode 100644 (file)
index 0000000..3d5bf2b
Binary files /dev/null and b/src/maemo/pixmaps/qgn_list_gene_high_attacpap.png differ
diff --git a/src/maemo/pixmaps/qgn_list_gene_low_attacpap.png b/src/maemo/pixmaps/qgn_list_gene_low_attacpap.png
new file mode 100644 (file)
index 0000000..3a11a4c
Binary files /dev/null and b/src/maemo/pixmaps/qgn_list_gene_low_attacpap.png differ
diff --git a/src/maemo/pixmaps/qgn_list_gene_norm_attacpap.png b/src/maemo/pixmaps/qgn_list_gene_norm_attacpap.png
new file mode 100644 (file)
index 0000000..da8a1b1
Binary files /dev/null and b/src/maemo/pixmaps/qgn_list_gene_norm_attacpap.png differ
diff --git a/src/maemo/pixmaps/qgn_list_messaging_high_noatt.png b/src/maemo/pixmaps/qgn_list_messaging_high_noatt.png
new file mode 100644 (file)
index 0000000..ce69c82
Binary files /dev/null and b/src/maemo/pixmaps/qgn_list_messaging_high_noatt.png differ
diff --git a/src/maemo/pixmaps/qgn_list_messaging_low_noatt.png b/src/maemo/pixmaps/qgn_list_messaging_low_noatt.png
new file mode 100644 (file)
index 0000000..4542228
Binary files /dev/null and b/src/maemo/pixmaps/qgn_list_messaging_low_noatt.png differ
index b1c1daa..9b144a0 100644 (file)
 #include <glib/gi18n.h>
 #include <modest-platform.h>
 
-#if 0
-static gchar *
-_pango_replace_string (const gchar *string, 
-                      const gchar *in,
-                      const gchar *out) 
-{
-       gchar **tmp = NULL;     
-       gchar *new_string = NULL;
-       gchar *tmp_string = NULL;
-       guint i = 0;
-
-       /* Split data */
-       if (string == NULL) return g_strdup("");
-       tmp = g_strsplit(string, in, 0);        
-       if (tmp[0] == NULL) return g_strdup(string);
-
-       /* Replace and concat data*/
-       new_string = g_strdup(tmp[0]);
-       for (i = 1; tmp[i] != NULL; i++) {
-               tmp_string = g_strconcat (new_string, out, tmp[i], NULL);
-               g_free(new_string);
-               new_string = g_strdup(tmp_string);
-               g_free(tmp_string);
-       } 
-       
-       /* Free */
-       g_strfreev(tmp);
-
-       return new_string;
-}
-
-static gchar *
-_pango_parse_string (const gchar *string) 
-{
-       gchar *parsed_string = NULL;
-       gchar *tmp = NULL;
-       
-       if (string == NULL) return g_strdup("");
-       parsed_string = g_strdup(string);
-
-       /* Check for '&' special character */   
-       tmp = g_strdup(parsed_string);
-       g_free(parsed_string);
-       parsed_string = _pango_replace_string (tmp, "&", "&amp;");
-       g_free(tmp);
-
-       /* Check for '<' special character */
-       tmp = g_strdup(parsed_string);
-       g_free(parsed_string);
-       parsed_string = _pango_replace_string (tmp, "<", "&lt;");
-       g_free(tmp);
-
-       /* Check for '>' special character */
-       tmp = g_strdup(parsed_string);
-       g_free(parsed_string);
-       parsed_string = _pango_replace_string (tmp, ">", "&gt;");
-       g_free(tmp);
-
-       /* Check for ''' special character */
-       tmp = g_strdup(parsed_string);
-       g_free(parsed_string);
-       parsed_string = _pango_replace_string (tmp, "'", "&apos;");
-       g_free(tmp);
-
-       return parsed_string;
-}
-
-#endif
-
 static GdkPixbuf*
 get_pixbuf_for_flag (TnyHeaderFlags flag)
 {