summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-07-11 14:51:26 +0200
committerraveit65 <[email protected]>2018-07-15 16:12:42 +0200
commitdba717dc485a85838a78922cb4245a35f50ecf01 (patch)
treead8b4f6ce1f3fd9fc31839d91a54dda4f2efa596
parent667f5b20b5552eb045baefa4d79b1a0d99d24331 (diff)
downloadeom-dba717dc485a85838a78922cb4245a35f50ecf01.tar.bz2
eom-dba717dc485a85838a78922cb4245a35f50ecf01.tar.xz
exif-details: make value column selectable
Of course those values aren't editable, but this allowed to copy/paste gps data.
-rw-r--r--src/eom-exif-details.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/eom-exif-details.c b/src/eom-exif-details.c
index efe1e42..0fdb0eb 100644
--- a/src/eom-exif-details.c
+++ b/src/eom-exif-details.c
@@ -257,9 +257,12 @@ eom_exif_details_init (EomExifDetails *exif_details)
/* Value column */
cell = gtk_cell_renderer_text_new ();
- column = gtk_tree_view_column_new_with_attributes (_("Value"), cell,
- "text", MODEL_COLUMN_VALUE,
- NULL);
+ g_object_set (cell,
+ "editable", TRUE,
+ NULL);
+ column = gtk_tree_view_column_new_with_attributes (_("Value"), cell,
+ "text", MODEL_COLUMN_VALUE,
+ NULL);
gtk_tree_view_append_column (GTK_TREE_VIEW (exif_details), column);
eom_exif_details_reset (exif_details);