+2005-10-01
+Evan Battaglia <gtoevan@gmx.net>:
+ * make symbols work for geocaching .loc files (and case-insensitive symbol names)
+
2005-09-30 Guilhem BONNEFILLE <guilhem.bonnefille@laposte.net>
* configure.ac, src/Makefile.am (SUBDIRS): added auto-tools support for src/icons
Alex Foobarian <foobarian@gmail.com>:
TODO till release 0.1.1:
IMPORTANT STUFF:
-X GPX symbols
Option as to whether or not to show waypoint symbols (we may want to show 'x's or something, and may have a lot of wpt_dot icons)
Option as to whether or not to show unit scale (esp for exporting images)
fix save file thing
check out bgitemcount stuff in background.c (hangs on clear!)
g_dtostr instead of fprintf in the appropriate places
-X DND: make it an interface, so we don't mention VikTrwLayer in viktreeview.c
-X DND: when moving layers, take into account the layer we're moving onto
- and move it above.
-X (DND?) fix "(viking:3671): Gtk-CRITICAL **: gtk_tree_model_get_iter: assertion `path->depth > 0' failed"
Debugging output shouldn't be printf'd but we g_print'd, and we should have a DEBUG flag
BIG THINGS:
GHashTable *icons = NULL;
+/* found via Google, from Sylpheed/GPL and/or gstring.c in Glib */
+static gint g_str_case_equal(gconstpointer v, gconstpointer v2)
+{
+ return strcasecmp((const gchar *)v, (const gchar *)v2) == 0;
+}
+
+static guint g_str_case_hash(gconstpointer key)
+{
+ const gchar *p = key;
+ guint h = *p;
+
+ if (h) {
+ h = tolower(h);
+ for (p += 1; *p != '\0'; p++)
+ h = (h << 5) - h + tolower(*p);
+ }
+
+ return h;
+}
+
static void init_icons() {
- icons = g_hash_table_new_full ( g_str_hash, g_str_equal, NULL, NULL);
+ icons = g_hash_table_new_full ( g_str_case_hash, g_str_case_equal, NULL, NULL);
gint i;
for (i=0; i<G_N_ELEMENTS(garmin_syms); i++) {
g_hash_table_insert(icons, garmin_syms[i].sym, (gpointer)i);
{ tt_wpt_name, "/gpx/wpt/name" },
{ tt_wpt_desc, "/gpx/wpt/desc" },
{ tt_wpt_sym, "/gpx/wpt/sym" },
+ { tt_wpt_sym, "/loc/waypoint/type" },
{ tt_wpt_link, "/gpx/wpt/link" }, /* GPX 1.1 */
{ tt_trk, "/gpx/trk" },
#include "icons/wp_car.png_h"
#include "icons/wp_deer.png_h"
#include "icons/wp_flag.png_h"
-#include "icons/wp_geocache_fnd.png_h"
#include "icons/wp_geocache.png_h"
+#include "icons/wp_geocache_fnd.png_h"
#include "icons/wp_house.png_h"
#include "icons/wp_wpt_dot.png_h"
#include "icons/zoom_18.png_h"