PsppireValueEntry: Enable can_focus in realize callback
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 19 Jul 2015 12:12:28 +0000 (14:12 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 19 Jul 2015 12:12:28 +0000 (14:12 +0200)
src/ui/gui/psppire-value-entry.c

index 5ce18414bbb29a6d4ef7c4cec14ba8d0e5b5d9e3..731b6b3fb16e688a90738fda591ca4472a035d7c 100644 (file)
@@ -149,6 +149,8 @@ on_realize (GtkWidget *w)
   g_signal_connect (buffer, "notify::text",
                     G_CALLBACK (psppire_value_entry_text_changed), w);
 
+  gtk_widget_set_can_focus (GTK_WIDGET (entry), TRUE);
+
   GTK_WIDGET_CLASS (psppire_value_entry_parent_class)->realize (w);
 }