summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/gui.c6
-rw-r--r--gui/help.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/gui/gui.c b/gui/gui.c
index ae5bf00..defd125 100644
--- a/gui/gui.c
+++ b/gui/gui.c
@@ -453,6 +453,7 @@ int run_gui(const struct file_names *fn, bool recurse, int limit,
{
GtkWidget *window;
char *title;
+ GtkSettings *settings = gtk_settings_get_default();
struct gui gui = {
.scale = 1 / 16.0,
.hist = NULL,
@@ -508,6 +509,11 @@ int run_gui(const struct file_names *fn, bool recurse, int limit,
// gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
+ /* http://gtk.10911.n7.nabble.com/Question-on-gtk-label-set-selectable-td9717.html */
+ if (settings)
+ g_object_set(settings, "gtk-label-select-on-focus",
+ FALSE, NULL);
+
go_to_sheet(&gui, gui.new_hist->sheets);
gtk_widget_show_all(window);
diff --git a/gui/help.c b/gui/help.c
index 22a2973..553f003 100644
--- a/gui/help.c
+++ b/gui/help.c
@@ -80,6 +80,7 @@ static GtkWidget *help_content(void)
GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
+ gtk_label_set_selectable(GTK_LABEL(label), TRUE);
gtk_label_set_markup(GTK_LABEL(label),
#include "../help.inc"
);