Wrapped moo_overwrite_file_dialog

This commit is contained in:
Yevgen Muntyan 2008-09-01 23:17:09 -05:00
parent 44422ce5df
commit 3231ba1c29
2 changed files with 11 additions and 0 deletions

View File

@ -433,6 +433,16 @@
)
)
(define-function overwrite_file_dialog
(c-name "moo_overwrite_file_dialog")
(return-type "gboolean")
(parameters
'("GtkWidget*" "parent" (null-ok) (default "NULL"))
'("const-char*" "display_name")
'("const-char*" "display_dirname")
)
)
(define-function error_dialog
(c-name "moo_error_dialog")
(return-type "none")

View File

@ -285,6 +285,7 @@ moo_overwrite_file_dialog (GtkWidget *parent,
GtkWidget *dialog, *button, *toplevel = NULL;
g_return_val_if_fail (display_name != NULL, FALSE);
g_return_val_if_fail (display_dirname != NULL, FALSE);
if (parent)
parent = gtk_widget_get_toplevel (parent);