Commit 9fb1746f6e18457b82eb27eaf48e05ad1ab53bf0
1 parent
9b571be3
Exists in
master
and in
1 other branch
Fixing warnings.
Showing
7 changed files
with
8 additions
and
2 deletions
Show diff stats
src/dialogs/dialog.c
@@ -35,6 +35,7 @@ | @@ -35,6 +35,7 @@ | ||
35 | #include <clipboard.h> | 35 | #include <clipboard.h> |
36 | #include <limits.h> | 36 | #include <limits.h> |
37 | #include <v3270/dialogs.h> | 37 | #include <v3270/dialogs.h> |
38 | + #include <v3270/tools.h> | ||
38 | 39 | ||
39 | 40 | ||
40 | /*--[ Implement ]------------------------------------------------------------------------------------*/ | 41 | /*--[ Implement ]------------------------------------------------------------------------------------*/ |
src/dialogs/print/settingsdialog.c
@@ -39,6 +39,8 @@ | @@ -39,6 +39,8 @@ | ||
39 | 39 | ||
40 | #include <internals.h> | 40 | #include <internals.h> |
41 | #include <v3270/filetransfer.h> | 41 | #include <v3270/filetransfer.h> |
42 | + #include <v3270/tools.h> | ||
43 | + | ||
42 | #include "private.h" | 44 | #include "private.h" |
43 | 45 | ||
44 | /*--[ Widget definition ]----------------------------------------------------------------------------*/ | 46 | /*--[ Widget definition ]----------------------------------------------------------------------------*/ |
src/dialogs/save/save.c
@@ -386,7 +386,7 @@ static void icon_press(GtkEntry *entry, G_GNUC_UNUSED GtkEntryIconPosition icon_ | @@ -386,7 +386,7 @@ static void icon_press(GtkEntry *entry, G_GNUC_UNUSED GtkEntryIconPosition icon_ | ||
386 | gtk_window_set_deletable(GTK_WINDOW(dialog),FALSE); | 386 | gtk_window_set_deletable(GTK_WINDOW(dialog),FALSE); |
387 | #endif // G_OS_UNIX | 387 | #endif // G_OS_UNIX |
388 | 388 | ||
389 | - gtk_dialog_set_toplevel(dialog,widget); | 389 | + gtk_dialog_set_toplevel(GTK_WIDGET(dialog),widget); |
390 | gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); | 390 | gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); |
391 | gtk_window_set_destroy_with_parent(GTK_WINDOW(dialog), TRUE); | 391 | gtk_window_set_destroy_with_parent(GTK_WINDOW(dialog), TRUE); |
392 | 392 |
src/dialogs/settings/dialog.c
@@ -32,6 +32,7 @@ | @@ -32,6 +32,7 @@ | ||
32 | #include <v3270/settings.h> | 32 | #include <v3270/settings.h> |
33 | #include <terminal.h> | 33 | #include <terminal.h> |
34 | #include <lib3270/log.h> | 34 | #include <lib3270/log.h> |
35 | + #include <v3270/tools.h> | ||
35 | 36 | ||
36 | struct _V3270SettingsDialog { | 37 | struct _V3270SettingsDialog { |
37 | GtkDialog parent; | 38 | GtkDialog parent; |
src/dialogs/settings/host.c
@@ -39,6 +39,7 @@ | @@ -39,6 +39,7 @@ | ||
39 | #include <lib3270/toggle.h> | 39 | #include <lib3270/toggle.h> |
40 | #include <lib3270/properties.h> | 40 | #include <lib3270/properties.h> |
41 | #include <v3270/settings/url.h> | 41 | #include <v3270/settings/url.h> |
42 | + #include <v3270/tools.h> | ||
42 | 43 | ||
43 | /*--[ Globals ]--------------------------------------------------------------------------------------*/ | 44 | /*--[ Globals ]--------------------------------------------------------------------------------------*/ |
44 | 45 |
src/dialogs/transfer.c
@@ -36,6 +36,7 @@ | @@ -36,6 +36,7 @@ | ||
36 | #include <v3270.h> | 36 | #include <v3270.h> |
37 | #include <v3270/filetransfer.h> | 37 | #include <v3270/filetransfer.h> |
38 | #include <v3270/dialogs.h> | 38 | #include <v3270/dialogs.h> |
39 | + #include <v3270/tools.h> | ||
39 | 40 | ||
40 | /*--[ Implement ]------------------------------------------------------------------------------------*/ | 41 | /*--[ Implement ]------------------------------------------------------------------------------------*/ |
41 | 42 |
src/tools/dialog.c
@@ -40,7 +40,7 @@ | @@ -40,7 +40,7 @@ | ||
40 | 40 | ||
41 | if(widget) { | 41 | if(widget) { |
42 | 42 | ||
43 | - GtkWidget * toplevel = GTK_WINDOW(gtk_widget_get_toplevel(widget)); | 43 | + GtkWindow * toplevel = GTK_WINDOW(gtk_widget_get_toplevel(widget)); |
44 | 44 | ||
45 | gtk_window_set_transient_for( | 45 | gtk_window_set_transient_for( |
46 | GTK_WINDOW(dialog), | 46 | GTK_WINDOW(dialog), |