From 713c845e5a04a5ea5a41d1d8de3dc5c16b0e8df5 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 22 Jan 2013 19:52:07 -0800 Subject: 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 --- display-gtk.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'display-gtk.h') 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); -- cgit v1.2.3-70-g09d2