diff options
Diffstat (limited to 'src/ui/new_platform.c')
-rw-r--r-- | src/ui/new_platform.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/ui/new_platform.c b/src/ui/new_platform.c index e4f8c4a..0eb0ced 100644 --- a/src/ui/new_platform.c +++ b/src/ui/new_platform.c | |||
@@ -67,7 +67,7 @@ handle_platform_entry_activate(GtkEntry *entry, | |||
67 | 67 | ||
68 | _open_new_platform(entry, app); | 68 | _open_new_platform(entry, app); |
69 | 69 | ||
70 | gtk_window_close(GTK_WINDOW(app->ui.new_platform.platform_dialog)); | 70 | gtk_window_close(GTK_WINDOW(app->ui.new_platform.dialog)); |
71 | } | 71 | } |
72 | 72 | ||
73 | static void | 73 | static void |
@@ -86,7 +86,7 @@ handle_confirm_button_click(UNUSED GtkButton *button, | |||
86 | 86 | ||
87 | _open_new_platform(app->ui.new_platform.platform_entry, app); | 87 | _open_new_platform(app->ui.new_platform.platform_entry, app); |
88 | 88 | ||
89 | gtk_window_close(GTK_WINDOW(app->ui.new_platform.platform_dialog)); | 89 | gtk_window_close(GTK_WINDOW(app->ui.new_platform.dialog)); |
90 | } | 90 | } |
91 | 91 | ||
92 | void | 92 | void |
@@ -95,22 +95,20 @@ ui_new_platform_dialog_init(MESSENGER_Application *app, | |||
95 | { | 95 | { |
96 | GtkBuilder* builder = gtk_builder_new_from_file("resources/ui/new_platform.ui"); | 96 | GtkBuilder* builder = gtk_builder_new_from_file("resources/ui/new_platform.ui"); |
97 | 97 | ||
98 | handle->platform_dialog = GTK_DIALOG( | 98 | handle->dialog = GTK_DIALOG( |
99 | gtk_builder_get_object(builder, "platform_dialog") | 99 | gtk_builder_get_object(builder, "new_platform_dialog") |
100 | ); | 100 | ); |
101 | 101 | ||
102 | gtk_window_set_title( | 102 | gtk_window_set_title( |
103 | GTK_WINDOW(handle->platform_dialog), | 103 | GTK_WINDOW(handle->dialog), |
104 | "New Platform" | 104 | "New Platform" |
105 | ); | 105 | ); |
106 | 106 | ||
107 | gtk_window_set_transient_for( | 107 | gtk_window_set_transient_for( |
108 | GTK_WINDOW(handle->platform_dialog), | 108 | GTK_WINDOW(handle->dialog), |
109 | GTK_WINDOW(app->ui.messenger.main_window) | 109 | GTK_WINDOW(app->ui.messenger.main_window) |
110 | ); | 110 | ); |
111 | 111 | ||
112 | gtk_window_set_modal(GTK_WINDOW(handle->platform_dialog), TRUE); | ||
113 | |||
114 | handle->platform_avatar = HDY_AVATAR( | 112 | handle->platform_avatar = HDY_AVATAR( |
115 | gtk_builder_get_object(builder, "platform_avatar") | 113 | gtk_builder_get_object(builder, "platform_avatar") |
116 | ); | 114 | ); |
@@ -145,7 +143,7 @@ ui_new_platform_dialog_init(MESSENGER_Application *app, | |||
145 | handle->cancel_button, | 143 | handle->cancel_button, |
146 | "clicked", | 144 | "clicked", |
147 | G_CALLBACK(handle_cancel_button_click), | 145 | G_CALLBACK(handle_cancel_button_click), |
148 | handle->platform_dialog | 146 | handle->dialog |
149 | ); | 147 | ); |
150 | 148 | ||
151 | handle->confirm_button = GTK_BUTTON( | 149 | handle->confirm_button = GTK_BUTTON( |