aboutsummaryrefslogtreecommitdiff
path: root/src/ui/new_contact.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/new_contact.c')
-rw-r--r--src/ui/new_contact.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/ui/new_contact.c b/src/ui/new_contact.c
index f9cd215..28bc2bf 100644
--- a/src/ui/new_contact.c
+++ b/src/ui/new_contact.c
@@ -188,10 +188,10 @@ ui_new_contact_dialog_init(MESSENGER_Application *app,
188 188
189 pthread_create(&(handle->video_tid), NULL, _ui_new_contact_video_thread, handle); 189 pthread_create(&(handle->video_tid), NULL, _ui_new_contact_video_thread, handle);
190 190
191 GtkBuilder* builder = gtk_builder_new_from_file("resources/ui/new_contact.ui"); 191 handle->builder = gtk_builder_new_from_file("resources/ui/new_contact.ui");
192 192
193 handle->dialog = GTK_DIALOG( 193 handle->dialog = GTK_DIALOG(
194 gtk_builder_get_object(builder, "new_contact_dialog") 194 gtk_builder_get_object(handle->builder, "new_contact_dialog")
195 ); 195 );
196 196
197 gtk_window_set_title( 197 gtk_window_set_title(
@@ -205,7 +205,7 @@ ui_new_contact_dialog_init(MESSENGER_Application *app,
205 ); 205 );
206 206
207 handle->id_drawing_area = GTK_DRAWING_AREA( 207 handle->id_drawing_area = GTK_DRAWING_AREA(
208 gtk_builder_get_object(builder, "id_drawing_area") 208 gtk_builder_get_object(handle->builder, "id_drawing_area")
209 ); 209 );
210 210
211 g_signal_connect( 211 g_signal_connect(
@@ -216,11 +216,11 @@ ui_new_contact_dialog_init(MESSENGER_Application *app,
216 ); 216 );
217 217
218 handle->id_entry = GTK_ENTRY( 218 handle->id_entry = GTK_ENTRY(
219 gtk_builder_get_object(builder, "platform_entry") 219 gtk_builder_get_object(handle->builder, "platform_entry")
220 ); 220 );
221 221
222 handle->cancel_button = GTK_BUTTON( 222 handle->cancel_button = GTK_BUTTON(
223 gtk_builder_get_object(builder, "cancel_button") 223 gtk_builder_get_object(handle->builder, "cancel_button")
224 ); 224 );
225 225
226 g_signal_connect( 226 g_signal_connect(
@@ -231,7 +231,7 @@ ui_new_contact_dialog_init(MESSENGER_Application *app,
231 ); 231 );
232 232
233 handle->confirm_button = GTK_BUTTON( 233 handle->confirm_button = GTK_BUTTON(
234 gtk_builder_get_object(builder, "confirm_button") 234 gtk_builder_get_object(handle->builder, "confirm_button")
235 ); 235 );
236 236
237 g_signal_connect( 237 g_signal_connect(
@@ -261,6 +261,8 @@ ui_new_contact_dialog_cleanup(UI_NEW_CONTACT_Handle *handle)
261 261
262 handle->idle_processing = 0; 262 handle->idle_processing = 0;
263 263
264 g_object_unref(handle->builder);
265
264 zbar_image_scanner_destroy(handle->scanner); 266 zbar_image_scanner_destroy(handle->scanner);
265 zbar_video_destroy(handle->video); 267 zbar_video_destroy(handle->video);
266} 268}