summaryrefslogtreecommitdiff
path: root/examples/radiobuttons
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2002-02-19 01:25:26 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2002-02-19 01:25:26 +0000
commitbd73a312f06ad6d1a448cab873f309264ee24b46 (patch)
tree62afa03ae970e3260e0677d02a2391e1d0350a1d /examples/radiobuttons
parentc3940d4a07a6855998e1d991afeb92f3253bef56 (diff)
downloadgtk+-bd73a312f06ad6d1a448cab873f309264ee24b46.tar.gz
Trivial formatting fixes to all examples, simple functional fixes to
* docs/tutorial/gtk-tut.sgml, docs/examples/*: Trivial formatting fixes to all examples, simple functional fixes to rangewidgets example.
Diffstat (limited to 'examples/radiobuttons')
-rw-r--r--examples/radiobuttons/radiobuttons.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/radiobuttons/radiobuttons.c b/examples/radiobuttons/radiobuttons.c
index 15399ba190..22e7301d41 100644
--- a/examples/radiobuttons/radiobuttons.c
+++ b/examples/radiobuttons/radiobuttons.c
@@ -6,7 +6,7 @@ gint close_application( GtkWidget *widget,
GdkEvent *event,
gpointer data )
{
- gtk_main_quit();
+ gtk_main_quit ();
return FALSE;
}
@@ -20,13 +20,13 @@ int main( int argc,
GtkWidget *separator;
GSList *group;
- gtk_init(&argc,&argv);
+ gtk_init (&argc,&argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
g_signal_connect (GTK_OBJECT (window), "delete_event",
- GTK_SIGNAL_FUNC(close_application),
- NULL);
+ GTK_SIGNAL_FUNC (close_application),
+ NULL);
gtk_window_set_title (GTK_WINDOW (window), "radio buttons");
gtk_container_set_border_width (GTK_CONTAINER (window), 0);
@@ -45,7 +45,7 @@ int main( int argc,
gtk_widget_show (button);
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (button));
- button = gtk_radio_button_new_with_label(group, "button2");
+ button = gtk_radio_button_new_with_label (group, "button2");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
gtk_widget_show (button);
@@ -67,15 +67,15 @@ int main( int argc,
button = gtk_button_new_with_label ("close");
g_signal_connect_swapped (GTK_OBJECT (button), "clicked",
- GTK_SIGNAL_FUNC(close_application),
- GTK_OBJECT (window));
+ GTK_SIGNAL_FUNC (close_application),
+ GTK_OBJECT (window));
gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_widget_grab_default (button);
gtk_widget_show (button);
gtk_widget_show (window);
- gtk_main();
+ gtk_main ();
return 0;
}