summaryrefslogtreecommitdiff
path: root/gui/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'gui/gui.c')
-rw-r--r--gui/gui.c6
1 files changed, 6 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);