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/filesel/filesel.c | |
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/filesel/filesel.c')
-rw-r--r-- | examples/filesel/filesel.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/examples/filesel/filesel.c b/examples/filesel/filesel.c index 87daf12645..1ad8444b54 100644 --- a/examples/filesel/filesel.c +++ b/examples/filesel/filesel.c @@ -25,23 +25,22 @@ int main( int argc, filew = gtk_file_selection_new ("File selection"); g_signal_connect (GTK_OBJECT (filew), "destroy", - GTK_SIGNAL_FUNC (destroy), &filew); + GTK_SIGNAL_FUNC (destroy), &filew); /* Connect the ok_button to file_ok_sel function */ g_signal_connect (GTK_OBJECT (GTK_FILE_SELECTION (filew)->ok_button), - "clicked", GTK_SIGNAL_FUNC (file_ok_sel), filew ); + "clicked", GTK_SIGNAL_FUNC (file_ok_sel), filew ); /* Connect the cancel_button to destroy the widget */ - g_signal_connect_swapped (GTK_OBJECT (GTK_FILE_SELECTION - (filew)->cancel_button), - "clicked", GTK_SIGNAL_FUNC (gtk_widget_destroy), - GTK_OBJECT (filew)); + g_signal_connect_swapped (GTK_OBJECT (GTK_FILE_SELECTION (filew)->cancel_button), + "clicked", GTK_SIGNAL_FUNC (gtk_widget_destroy), + GTK_OBJECT (filew)); /* Lets set the filename, as if this were a save dialog, and we are giving a default filename */ gtk_file_selection_set_filename (GTK_FILE_SELECTION(filew), "penguin.png"); - gtk_widget_show(filew); + gtk_widget_show (filew); gtk_main (); return 0; } |