diff options
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 87daf1264..1ad8444b5 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; } |