Skip to content

Commit

Permalink
geotagging.c: view entire track with MMB
Browse files Browse the repository at this point in the history
  • Loading branch information
esq4 committed Nov 30, 2024
1 parent fa54963 commit 0e16e5e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/libs/geotagging.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,15 @@ static void _refresh_display_all_tracks(dt_lib_module_t *self)
_refresh_displayed_images(self);
}

static gboolean _click_on_track_segments(GtkEntry *spin, GdkEventButton *event, dt_lib_module_t *self)
{
if(event->button == 2)
{
_refresh_display_all_tracks(self);
}
return FALSE;
}

static void _track_seg_toggled(GtkCellRendererToggle *cell_renderer, gchar *path_str, dt_lib_module_t *self)
{
dt_lib_geotagging_t *d = self->data;
Expand Down Expand Up @@ -1899,6 +1908,7 @@ void gui_init(dt_lib_module_t *self)

g_object_set(G_OBJECT(d->map.gpx_view), "has-tooltip", TRUE, NULL);
g_signal_connect(G_OBJECT(d->map.gpx_view), "query-tooltip", G_CALLBACK(_row_tooltip_setup), self);
g_signal_connect(G_OBJECT(d->map.gpx_view), "button-press-event", G_CALLBACK(_click_on_track_segments), self);

// avoid ugly console pixman messages due to headers
gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(d->map.gpx_view), FALSE);
Expand Down

0 comments on commit 0e16e5e

Please sign in to comment.