Commit 9fb1746f6e18457b82eb27eaf48e05ad1ab53bf0

Authored by Perry Werneck
1 parent 9b571be3
Exists in master and in 1 other branch develop

Fixing warnings.

src/dialogs/dialog.c
... ... @@ -35,6 +35,7 @@
35 35 #include <clipboard.h>
36 36 #include <limits.h>
37 37 #include <v3270/dialogs.h>
  38 + #include <v3270/tools.h>
38 39  
39 40  
40 41 /*--[ Implement ]------------------------------------------------------------------------------------*/
... ...
src/dialogs/print/settingsdialog.c
... ... @@ -39,6 +39,8 @@
39 39  
40 40 #include <internals.h>
41 41 #include <v3270/filetransfer.h>
  42 + #include <v3270/tools.h>
  43 +
42 44 #include "private.h"
43 45  
44 46 /*--[ Widget definition ]----------------------------------------------------------------------------*/
... ...
src/dialogs/save/save.c
... ... @@ -386,7 +386,7 @@ static void icon_press(GtkEntry *entry, G_GNUC_UNUSED GtkEntryIconPosition icon_
386 386 gtk_window_set_deletable(GTK_WINDOW(dialog),FALSE);
387 387 #endif // G_OS_UNIX
388 388  
389   - gtk_dialog_set_toplevel(dialog,widget);
  389 + gtk_dialog_set_toplevel(GTK_WIDGET(dialog),widget);
390 390 gtk_window_set_modal(GTK_WINDOW(dialog), TRUE);
391 391 gtk_window_set_destroy_with_parent(GTK_WINDOW(dialog), TRUE);
392 392  
... ...
src/dialogs/settings/dialog.c
... ... @@ -32,6 +32,7 @@
32 32 #include <v3270/settings.h>
33 33 #include <terminal.h>
34 34 #include <lib3270/log.h>
  35 + #include <v3270/tools.h>
35 36  
36 37 struct _V3270SettingsDialog {
37 38 GtkDialog parent;
... ...
src/dialogs/settings/host.c
... ... @@ -39,6 +39,7 @@
39 39 #include <lib3270/toggle.h>
40 40 #include <lib3270/properties.h>
41 41 #include <v3270/settings/url.h>
  42 + #include <v3270/tools.h>
42 43  
43 44 /*--[ Globals ]--------------------------------------------------------------------------------------*/
44 45  
... ...
src/dialogs/transfer.c
... ... @@ -36,6 +36,7 @@
36 36 #include <v3270.h>
37 37 #include <v3270/filetransfer.h>
38 38 #include <v3270/dialogs.h>
  39 + #include <v3270/tools.h>
39 40  
40 41 /*--[ Implement ]------------------------------------------------------------------------------------*/
41 42  
... ...
src/tools/dialog.c
... ... @@ -40,7 +40,7 @@
40 40  
41 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 45 gtk_window_set_transient_for(
46 46 GTK_WINDOW(dialog),
... ...