summaryrefslogtreecommitdiffstats
path: root/display-gtk.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-22 19:52:07 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-22 20:11:13 -0800
commit713c845e5a04a5ea5a41d1d8de3dc5c16b0e8df5 (patch)
tree72dc14770d34098a444d1ac3940ec8a2c5cb5d25 /display-gtk.h
parentc02f1b88ab5a0a9d6fadf56468910d76ce0b1c5d (diff)
downloadsubsurface-713c845e5a04a5ea5a41d1d8de3dc5c16b0e8df5.tar.gz
Add GPS icon to the location column for dive sites where we have GPS data
This replaces the really lame "italics text" from commit abe810ca1a29 ("Mark locations that have GPS location data attached") with a marginally less lame GPS icon.There's a reason why I am not making a living as graphics artist. But I think this is a huge step forward from what we had before... The satellite.svg file is very loosely based on a different icon that I found as public domain here http://www.clker.com/clipart-30400.html. From that I created the PNG and then that was converted into the GdkPixdata via gdk-pixbuf-csource; a rule for that was added to the Makefile but commented out as I don't know if this tool will always be available in the path. Having this icon included in the sources avoids locating yet another icon file. Better icons are certainly welcome! Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'display-gtk.h')
-rw-r--r--display-gtk.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/display-gtk.h b/display-gtk.h
index b889ff1a2..df29ff1d8 100644
--- a/display-gtk.h
+++ b/display-gtk.h
@@ -72,6 +72,8 @@ extern GtkWidget *weightsystem_list_widget(int w_idx);
extern GtkWidget *dive_list_create(void);
extern void dive_list_destroy(void);
+extern gboolean icon_click_cb(GtkWidget *w, GdkEventButton *event, gpointer data);
+
unsigned int amount_selected;
extern void process_selected_dives(void);
@@ -95,6 +97,7 @@ typedef gint (*sort_func_t)(GtkTreeModel *model,
extern GtkTreeViewColumn *tree_view_column(GtkWidget *tree_view, int index, const char *title,
data_func_t data_func, unsigned int flags);
+extern GtkTreeViewColumn *tree_view_column_add_pixbuf(GtkWidget *tree_view, data_func_t data_func, GtkTreeViewColumn *col);
GError *uemis_download(const char *path, progressbar_t *progress, GtkDialog *dialog, gboolean force_download);