summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-11-03 01:17:34 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-11-03 01:22:44 (GMT)
commit0c6401fab1912927f81152a57530b8d75a09368d (patch)
tree9ec7e2e8a5624fedccf4b26a5be3fa526046ddad
parent67757fa5005f922910c6e7376cef6a35e68b2e39 (diff)
downloadeeshow-0c6401fab1912927f81152a57530b8d75a09368d.zip
eeshow-0c6401fab1912927f81152a57530b8d75a09368d.tar.gz
eeshow-0c6401fab1912927f81152a57530b8d75a09368d.tar.bz2
Revert "gui/gui.c (run_gui): we no longer need tge gtk-label-select-on-focus hack"
This reverts commit 52050667b55c9b8f75a61ecaf39422b5ef6d0bbf. This is needed for GtkLabel (see previous commit).
-rw-r--r--gui/gui.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/gui.c b/gui/gui.c
index c5cb060..c5d51a2 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,
@@ -509,6 +510,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);