t"Deal Drugs" spinbutton now does "OK" when Enter is pressed, properly - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 3ef0b16ebc6cf5a07a4e3ca4a9cb6e5a953fed35
(DIR) parent 5f2248351aaab50e701b92db134223fbf74f763b
(HTM) Author: Ben Webb <ben@salilab.org>
Date: Sun, 13 May 2001 03:40:40 +0000
"Deal Drugs" spinbutton now does "OK" when Enter is pressed, properly
Diffstat:
M src/gtk_client.c | 1 +
M src/gtkport.c | 3 +++
M src/gtkport.h | 1 +
3 files changed, 5 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/src/gtk_client.c b/src/gtk_client.c
t@@ -1211,6 +1211,7 @@ static void DealOKCallback(GtkWidget *widget,gpointer data) {
spinner=DealDialog.amount;
+ gtk_spin_button_update(GTK_SPIN_BUTTON(spinner));
amount=gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(spinner));
text=g_strdup_printf("drug^%d^%d",DealDialog.DrugInd,
(DIR) diff --git a/src/gtkport.c b/src/gtkport.c
t@@ -3719,6 +3719,9 @@ void gtk_spin_button_hide(GtkWidget *widget) {
if (updown) ShowWindow(updown,SW_HIDE);
}
+void gtk_spin_button_update(GtkSpinButton *spin_button) {
+}
+
void gdk_input_remove(gint tag) {
GSList *list;
GdkInput *input;
(DIR) diff --git a/src/gtkport.h b/src/gtkport.h
t@@ -671,6 +671,7 @@ gint gtk_spin_button_get_value_as_int(GtkSpinButton *spin_button);
void gtk_spin_button_set_value(GtkSpinButton *spin_button,gfloat value);
void gtk_spin_button_set_adjustment(GtkSpinButton *spin_button,
GtkAdjustment *adjustment);
+void gtk_spin_button_update(GtkSpinButton *spin_button);
void gtk_misc_set_alignment(GtkMisc *misc,gfloat xalign,gfloat yalign);
GtkWidget *gtk_progress_bar_new();
void gtk_progress_bar_set_orientation(GtkProgressBar *pbar,