fix a memory leak
[rhythmbox.git] / widgets / rb-dialog.h
blob85d314e22ddc2fd76b87c68fbf834ed18faa70d6
1 /*
2 * arch-tag: Header file for Rhythmbox dialog wrapper functions
4 * Copyright (C) 2002 Jorn Baayen
5 * Copyright (C) 2004 Colin Walters <walters@redhat.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
10 * any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef __RB_DIALOG_H
24 #define __RB_DIALOG_H
26 #include <gtk/gtkwindow.h>
27 #include <gtk/gtkfilechooserdialog.h>
28 #include <stdarg.h>
30 G_BEGIN_DECLS
32 void rb_error_dialog_full (GtkWindow *parent,
33 gboolean modal,
34 const char *primary,
35 const char *secondary,
36 const char *first_button,
37 ...) G_GNUC_PRINTF (4, 6);
39 void rb_error_dialog (GtkWindow *parent,
40 const char *primary,
41 const char *secondary,
42 ...) G_GNUC_PRINTF (3, 4);
44 GtkWidget * rb_file_chooser_new (const char *title,
45 GtkWindow *parent,
46 GtkFileChooserAction action,
47 gboolean local_only);
49 G_END_DECLS
51 #endif /* __RB_DIALOG_H */