From: John Darrington Date: Thu, 16 Apr 2009 23:59:28 +0000 (+0800) Subject: Continue button to grab default on realization X-Git-Tag: v0.7.3~150 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a2cb418e79c12d9d106cc5c9fe9e285b75661c4;p=pspp-builds.git Continue button to grab default on realization --- diff --git a/src/ui/gui/psppire-buttonbox.c b/src/ui/gui/psppire-buttonbox.c index 184ebd16..071751ad 100644 --- a/src/ui/gui/psppire-buttonbox.c +++ b/src/ui/gui/psppire-buttonbox.c @@ -272,6 +272,12 @@ psppire_button_box_init (PsppireButtonBox *bb) bb->button[PSPPIRE_BUTTON_CONTINUE] = gtk_button_new_with_mnemonic (_("Continue")); + GTK_WIDGET_SET_FLAGS (bb->button[PSPPIRE_BUTTON_CONTINUE], + GTK_CAN_DEFAULT); + + g_signal_connect (bb->button[PSPPIRE_BUTTON_CONTINUE], "realize", + G_CALLBACK (gtk_widget_grab_default), NULL); + gtk_box_pack_start_defaults (GTK_BOX (bb), bb->button[PSPPIRE_BUTTON_CONTINUE]); g_signal_connect (bb->button[PSPPIRE_BUTTON_CONTINUE], "clicked",