summaryrefslogtreecommitdiff
path: root/linux/dlgfile.cpp
diff options
context:
space:
mode:
authorleo2001-01-07 15:23:38 +0000
committerleo2001-01-07 15:23:38 +0000
commit1a08ac30811e885c3ae28f9a04c29c600e8947b2 (patch)
tree7c10440ebc2e00273ea6c0b857f4d38c3737c322 /linux/dlgfile.cpp
parent47cc86e89065f1691296e1754ccecda35e3a41d2 (diff)
New class for the main window
git-svn-id: http://svn.leocad.org/trunk@219 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'linux/dlgfile.cpp')
-rwxr-xr-xlinux/dlgfile.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/dlgfile.cpp b/linux/dlgfile.cpp
index 187634f..a215466 100755
--- a/linux/dlgfile.cpp
+++ b/linux/dlgfile.cpp
@@ -121,7 +121,7 @@ int openprojectdlg_execute (char* filename)
int ret = LC_CANCEL, loop = 1, len;
dlg = gtk_file_selection_new ("Open Project");
- gtk_window_set_transient_for (GTK_WINDOW (dlg), GTK_WINDOW (main_window));
+ 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);
gtk_signal_connect (GTK_OBJECT (dlg), "destroy",
@@ -214,7 +214,7 @@ int saveprojectdlg_execute (char* filename)
int ret = LC_CANCEL, loop = 1;
dlg = gtk_file_selection_new ("Save Project");
- gtk_window_set_transient_for (GTK_WINDOW (dlg), GTK_WINDOW (main_window));
+ 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);
gtk_signal_connect (GTK_OBJECT (dlg), "destroy",
@@ -278,7 +278,7 @@ int savepicturedlg_execute (void* param)
opts->imopts.format = (unsigned char)(image & ~(LC_IMAGE_MASK));
dlg = gtk_file_selection_new ("Save Picture");
- gtk_window_set_transient_for (GTK_WINDOW (dlg), GTK_WINDOW (main_window));
+ 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);
gtk_signal_connect (GTK_OBJECT (dlg), "destroy",