diff src/ui_utildlg.h @ 1451:0e67a5992d51

gint -> gboolean where applicable.
author zas_
date Mon, 16 Mar 2009 18:19:11 +0000
parents 8b89e3ff286b
children 956aab097ea7
line wrap: on
line diff
--- a/src/ui_utildlg.h	Sun Mar 15 23:22:17 2009 +0000
+++ b/src/ui_utildlg.h	Mon Mar 16 18:19:11 2009 +0000
@@ -24,7 +24,7 @@
 
 	GtkWidget *hbox;	/* button hbox */
 
-	gint auto_close;
+	gboolean auto_close;
 
 	void (*default_cb)(GenericDialog *, gpointer);
 	void (*cancel_cb)(GenericDialog *, gpointer);
@@ -42,7 +42,6 @@
 	GtkWidget *entry;
 
 	gint type;
-	gint multiple_files;
 
 	FileData *source_fd;
 	GList *source_list;
@@ -54,18 +53,18 @@
 /* When parent is not NULL, the dialog is set as a transient of the window containing parent */
 GenericDialog *generic_dialog_new(const gchar *title,
 				  const gchar *role,
-				  GtkWidget *parent, gint auto_close,
+				  GtkWidget *parent, gboolean auto_close,
 				  void (*cancel_cb)(GenericDialog *, gpointer), gpointer data);
 void generic_dialog_close(GenericDialog *gd);
 
 GtkWidget *generic_dialog_add_button(GenericDialog *gd, const gchar *stock_id, const gchar *text,
-				     void (*func_cb)(GenericDialog *, gpointer), gint is_default);
+				     void (*func_cb)(GenericDialog *, gpointer), gboolean is_default);
 void generic_dialog_attach_default(GenericDialog *gd, GtkWidget *widget);
 
 GtkWidget *generic_dialog_add_message(GenericDialog *gd, const gchar *icon_stock_id,
 				      const gchar *heading, const gchar *text);
 
-gint generic_dialog_get_alternative_button_order(GtkWidget *widget);
+gboolean generic_dialog_get_alternative_button_order(GtkWidget *widget);
 
 GenericDialog *warning_dialog(const gchar *heading, const gchar *text,
 			      const gchar *icon_stock_id, GtkWidget *parent);
@@ -77,7 +76,7 @@
 void file_dialog_close(FileDialog *fd);
 
 GtkWidget *file_dialog_add_button(FileDialog *fd, const gchar *stock_id, const gchar *text,
-				  void (*func_cb)(FileDialog *, gpointer), gint is_default);
+				  void (*func_cb)(FileDialog *, gpointer), gboolean is_default);
 
 /* default_path is default base directory, and is only used if no history
  *  exists for history_key (HOME is used if default_path is NULL).
@@ -87,9 +86,9 @@
 void file_dialog_add_path_widgets(FileDialog *fd, const gchar *default_path, const gchar *path,
 				  const gchar *history_key, const gchar *filter, const gchar *filter_desc);
 
-void file_dialog_add_filter(FileDialog *fd, const gchar *filter, const gchar *filter_desc, gint set);
+void file_dialog_add_filter(FileDialog *fd, const gchar *filter, const gchar *filter_desc, gboolean set);
 void file_dialog_clear_filter(FileDialog *fd);
-void file_dialog_sync_history(FileDialog *fd, gint dir_only);
+void file_dialog_sync_history(FileDialog *fd, gboolean dir_only);
 
 
 #endif