mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-20 22:26:54 +01:00
fix formatting
This commit is contained in:
parent
7742a90722
commit
b447decb78
1 changed files with 13 additions and 13 deletions
|
@ -33,7 +33,7 @@ button_event( GtkWidget* widget, void* closure )
|
||||||
|
|
||||||
gint
|
gint
|
||||||
gtkask( GtkAppGlobals* globals, gchar *message, gint numButtons,
|
gtkask( GtkAppGlobals* globals, gchar *message, gint numButtons,
|
||||||
char* button1, ... )
|
char* button1, ... )
|
||||||
{
|
{
|
||||||
GtkWidget* dialog;
|
GtkWidget* dialog;
|
||||||
GtkWidget* label;
|
GtkWidget* label;
|
||||||
|
@ -49,16 +49,16 @@ gtkask( GtkAppGlobals* globals, gchar *message, gint numButtons,
|
||||||
label = gtk_label_new( message );
|
label = gtk_label_new( message );
|
||||||
|
|
||||||
for ( i = 0; i < numButtons; ++i ) {
|
for ( i = 0; i < numButtons; ++i ) {
|
||||||
button = gtk_button_new_with_label( *butList );
|
button = gtk_button_new_with_label( *butList );
|
||||||
|
|
||||||
results[i] = 0;
|
results[i] = 0;
|
||||||
gtk_signal_connect( GTK_OBJECT( button ), "clicked",
|
gtk_signal_connect( GTK_OBJECT( button ), "clicked",
|
||||||
GTK_SIGNAL_FUNC(button_event), &results[i] );
|
GTK_SIGNAL_FUNC(button_event), &results[i] );
|
||||||
|
|
||||||
gtk_container_add( GTK_CONTAINER( GTK_DIALOG(dialog)->action_area),
|
|
||||||
button );
|
|
||||||
|
|
||||||
++butList;
|
gtk_container_add( GTK_CONTAINER( GTK_DIALOG(dialog)->action_area),
|
||||||
|
button );
|
||||||
|
|
||||||
|
++butList;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add the label, and show everything we've added to the dialog. */
|
/* Add the label, and show everything we've added to the dialog. */
|
||||||
|
@ -72,12 +72,12 @@ gtkask( GtkAppGlobals* globals, gchar *message, gint numButtons,
|
||||||
gtk_widget_destroy( dialog );
|
gtk_widget_destroy( dialog );
|
||||||
|
|
||||||
for ( i = 0; i < numButtons; ++i ) {
|
for ( i = 0; i < numButtons; ++i ) {
|
||||||
if ( results[i] ) {
|
if ( results[i] ) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
g_free( results );
|
g_free( results );
|
||||||
return i;
|
return i;
|
||||||
} /* gtkask */
|
} /* gtkask */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue