Updated several Linux dialogs.

This commit is contained in:
leo 2012-03-14 23:52:28 +00:00
parent cadab1896f
commit 82f33c200f
3 changed files with 575 additions and 680 deletions

File diff suppressed because it is too large Load diff

View file

@ -2,27 +2,27 @@
#define _DIALOGS_H_
// Dialog support functions
void dialog_button_callback (GtkWidget *widget, gpointer data);
gint dialog_delete_callback (GtkWidget *widget, GdkEvent* event, gpointer data);
void dialog_button_callback(GtkWidget *widget, gpointer data);
gint dialog_delete_callback(GtkWidget *widget, GdkEvent* event, gpointer data);
// obsolete
int dlg_domodal (GtkWidget* dlg, int def);
void dlg_end (int ret);
gint dlg_delete_callback (GtkWidget *widget, GdkEvent* event, gpointer data);
int dlg_domodal(GtkWidget* dlg, int def);
void dlg_end(int ret);
gint dlg_delete_callback(GtkWidget *widget, GdkEvent* event, gpointer data);
void dlg_default_callback(GtkWidget *widget, gpointer data);
void modifydlg_toggle ();
void modifydlg_toggle();
// All dialogs
int openprojectdlg_execute (char* filename);
int saveprojectdlg_execute (char* filename);
int savepicturedlg_execute (void* param);
int msgbox_execute (const char* text, const char *caption, int flags);
int openprojectdlg_execute(char* filename);
int saveprojectdlg_execute(char* filename);
int savepicturedlg_execute(void* param);
int msgbox_execute(const char* text, const char *caption, int flags);
int filedlg_execute(const char* caption, char* filename);
int arraydlg_execute(void* param);
int aboutdlg_execute(void* param);
int htmldlg_execute(void* param);
int imageoptsdlg_execute(void* param, bool from_htmldlg);
int imageoptsdlg_execute(GtkWidget* parent, void* param, bool from_htmldlg);
int povraydlg_execute(void* param);
int preferencesdlg_execute(void* param);
int propertiesdlg_execute(void* param);
@ -33,8 +33,3 @@ int librarydlg_execute(void* param);
#endif // _DIALOGS_H_

View file

@ -253,7 +253,7 @@ int saveprojectdlg_execute (char* filename)
static void savepicturedlg_options (GtkWidget *widget, gpointer data)
{
imageoptsdlg_execute (data, false);
imageoptsdlg_execute (gtk_widget_get_toplevel(widget), data, false);
}
int savepicturedlg_execute (void* param)
@ -272,7 +272,7 @@ int savepicturedlg_execute (void* param)
opts->imopts.pause = (float)Sys_ProfileLoadInt ("Default", "AVI Pause", 100)/100;
opts->imopts.format = (unsigned char)(image & ~(LC_IMAGE_MASK));
dlg = gtk_file_selection_new ("Save Picture");
dlg = gtk_file_selection_new ("Save Picture"); // FIXME: use GtkFileChooserDialog
gtk_window_set_transient_for (GTK_WINDOW (dlg), GTK_WINDOW (((GtkWidget*)(*main_window))));
gtk_signal_connect (GTK_OBJECT (dlg), "delete_event",
GTK_SIGNAL_FUNC (dialog_delete_callback), NULL);