Commit 1b36cbbc1abf247f5951619e2eccf1004eb789b4
1 parent
3b4001a1
Exists in
master
and in
2 other branches
Fixing lgtm alerts.
Showing
2 changed files
with
7 additions
and
7 deletions
Show diff stats
src/objects/application/actions/open.c
@@ -75,11 +75,11 @@ static void open_window(GtkWidget *dialog, gint response_id, GtkApplication *app | @@ -75,11 +75,11 @@ static void open_window(GtkWidget *dialog, gint response_id, GtkApplication *app | ||
75 | 75 | ||
76 | } | 76 | } |
77 | 77 | ||
78 | -static void open_session(GtkWidget *dialog, gint response_id, GtkApplication *application) { | 78 | +static void open_session(GtkWidget *file_chooser, gint response_id, GtkApplication *application) { |
79 | 79 | ||
80 | if(response_id == GTK_RESPONSE_OK) { | 80 | if(response_id == GTK_RESPONSE_OK) { |
81 | 81 | ||
82 | - g_autofree gchar * file_name = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)); | 82 | + g_autofree gchar * file_name = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(file_chooser)); |
83 | 83 | ||
84 | if(file_name) { | 84 | if(file_name) { |
85 | GError * error = NULL; | 85 | GError * error = NULL; |
@@ -121,7 +121,7 @@ static void open_session(GtkWidget *dialog, gint response_id, GtkApplication *ap | @@ -121,7 +121,7 @@ static void open_session(GtkWidget *dialog, gint response_id, GtkApplication *ap | ||
121 | 121 | ||
122 | } | 122 | } |
123 | 123 | ||
124 | - gtk_widget_destroy(dialog); | 124 | + gtk_widget_destroy(file_chooser); |
125 | 125 | ||
126 | } | 126 | } |
127 | 127 |
src/objects/window/private.h
@@ -68,10 +68,10 @@ struct _pw3270ApplicationWindow { | @@ -68,10 +68,10 @@ struct _pw3270ApplicationWindow { | ||
68 | GList * keypads; ///< @brief Keypads. | 68 | GList * keypads; ///< @brief Keypads. |
69 | 69 | ||
70 | struct { | 70 | struct { |
71 | - int width; ///< @brief Window width. | ||
72 | - int height; ///< @brief Window height. | ||
73 | - int is_maximized : 1; ///< @brief Non zero if window is maximized. | ||
74 | - int is_fullscreen : 1; ///< @brief Non zero if window is fullscreen. | 71 | + int width; ///< @brief Window width. |
72 | + int height; ///< @brief Window height. | ||
73 | + unsigned int is_maximized : 1; ///< @brief Non zero if window is maximized. | ||
74 | + unsigned int is_fullscreen : 1; ///< @brief Non zero if window is fullscreen. | ||
75 | } state; | 75 | } state; |
76 | 76 | ||
77 | GtkWidget * popups[PW3270_APP_WINDOW_POPUP_COUNT]; | 77 | GtkWidget * popups[PW3270_APP_WINDOW_POPUP_COUNT]; |