Compilation fixes, bugs reported by DrMike -mig

This commit is contained in:
Miguel de Icaza 1998-04-16 18:08:08 +00:00
parent 8f56dbcab1
commit 6981cf6275
6 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,7 @@
1998-04-16 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gwidget.c (x_radio_toggle): Never commit non-compilable code.
1998-04-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gwidget.c (remove_hotkey, x_create_radio): Radio buttons should

View File

@ -30,6 +30,7 @@
#define PORT_WANTS_ARGP 1
#define PORT_WIDGET_WANTS_HISTORY 0
#define PORT_HAS_UPDATE_MARKS 1
#define PORT_HAS_RADIO_TOGGLE 1
#define mi_getch() fprintf (stderr, "mi_getch is not implemented in this port\n")
#define frontend_run_dlg(x) gtkrundlg_event (x)

View File

@ -161,8 +161,6 @@ x_radio_toggle (WRadio *radio)
for (i = 0; i < radio->count; i++){
GtkBoxChild *bc = (GtkBoxChild *) children->data;
if (GTK_TOGGLE_BUTTON (bc->widget)->active)
gtk_toggle_button_toggled
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (bc->widget), (i == radio->sel) ? 1 : 0);
children = children->next;
}

View File

@ -1,6 +1,6 @@
msgid ""
msgstr ""
"Date: 1998-04-15 22:34:13-0500\n"
"Date: 1998-04-16 13:12:28-0500\n"
"From: Miguel de Icaza,computo,622-4680 <miguel@metropolis.nuclecu.unam.mx>\n"
"Content-Type: text/plain; charset=\n"
"Xgettext-Options: --default-domain=mc --directory=.. --add-comments --keyword=_ --keyword=N_ --files-from=./POTFILES.in\n"

View File

@ -1,3 +1,7 @@
1998-04-16 Miguel de Icaza <miguel@nuclecu.unam.mx>
* widget.c (x_radio_toggle): New per-port variable: PORT_HAS_RADIO_TOGGLE
1998-04-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
* screen.c (GT): Assign two spaces for the minimum size of the

View File

@ -66,6 +66,10 @@
# define x_radio_focus_item(r)
#endif
#ifndef PORT_HAS_RADIO_TOGGLE
# define x_radio_toggle
#endif
static int button_event (Gpm_Event *event, WButton *b);
int quote = 0;