diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2002-02-19 01:25:26 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2002-02-19 01:25:26 +0000 |
commit | bd73a312f06ad6d1a448cab873f309264ee24b46 (patch) | |
tree | 62afa03ae970e3260e0677d02a2391e1d0350a1d /examples/frame | |
parent | c3940d4a07a6855998e1d991afeb92f3253bef56 (diff) | |
download | gtk+-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/frame')
-rw-r--r-- | examples/frame/frame.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/frame/frame.c b/examples/frame/frame.c index 05afcd4762..fc44ee09dc 100644 --- a/examples/frame/frame.c +++ b/examples/frame/frame.c @@ -9,34 +9,34 @@ int main( int argc, GtkWidget *frame; /* Initialise GTK */ - gtk_init(&argc, &argv); + gtk_init (&argc, &argv); /* Create a new window */ window = gtk_window_new (GTK_WINDOW_TOPLEVEL); - gtk_window_set_title(GTK_WINDOW(window), "Frame Example"); + gtk_window_set_title (GTK_WINDOW (window), "Frame Example"); /* Here we connect the "destroy" event to a signal handler */ g_signal_connect (GTK_OBJECT (window), "destroy", - GTK_SIGNAL_FUNC (gtk_main_quit), NULL); + GTK_SIGNAL_FUNC (gtk_main_quit), NULL); gtk_widget_set_size_request (window, 300, 300); /* Sets the border width of the window. */ gtk_container_set_border_width (GTK_CONTAINER (window), 10); /* Create a Frame */ - frame = gtk_frame_new(NULL); - gtk_container_add(GTK_CONTAINER(window), frame); + frame = gtk_frame_new (NULL); + gtk_container_add (GTK_CONTAINER (window), frame); /* Set the frame's label */ - gtk_frame_set_label( GTK_FRAME(frame), "GTK Frame Widget" ); + gtk_frame_set_label (GTK_FRAME (frame), "GTK Frame Widget"); /* Align the label at the right of the frame */ - gtk_frame_set_label_align( GTK_FRAME(frame), 1.0, 0.0); + gtk_frame_set_label_align (GTK_FRAME (frame), 1.0, 0.0); /* Set the style of the frame */ - gtk_frame_set_shadow_type( GTK_FRAME(frame), GTK_SHADOW_ETCHED_OUT); + gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_OUT); - gtk_widget_show(frame); + gtk_widget_show (frame); /* Display the window */ gtk_widget_show (window); |