ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gtkbfc/gtkbfc.c
(Generate patch)

Comparing gtkbfc/gtkbfc.c (file contents):
Revision 1.1 by root, Wed Aug 15 11:18:24 2007 UTC vs.
Revision 1.2 by root, Wed Aug 15 11:24:34 2007 UTC

26 argv [2] = 0; 26 argv [2] = 0;
27 27
28 if (g_spawn_sync (0, argv, 0, 0, 0, 0, &output, 0, 0, 0)) 28 if (g_spawn_sync (0, argv, 0, 0, 0, 0, &output, 0, 0, 0))
29 { 29 {
30 fprintf (stderr, "out<%s>\n", output); 30 fprintf (stderr, "out<%s>\n", output);
31
32 if (gtk_file_chooser_get_action (GTK_FILE_CHOOSER (widget)) == GTK_FILE_CHOOSER_ACTION_SAVE
33 || gtk_file_chooser_get_action (GTK_FILE_CHOOSER (widget)) == GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER)
31 gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (widget), output); 34 gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (widget), output);
35 else
36 gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (widget), output);
32 37
33 g_free (output); 38 g_free (output);
34 39
35 //gtk_widget_hide (widget); 40 //gtk_widget_hide (widget);
36 gtk_widget_unmap (GTK_WIDGET (widget));
37 g_idle_add (activate_cb, widget); 41 g_timeout_add (1000, activate_cb, widget);
38 } 42 }
39 else 43 else
40 ;//gtk_widget_show (widget); 44 ;//gtk_widget_show (widget);
41} 45}
42 46

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines