diff options
Diffstat (limited to 'src/ui/contact_info.c')
-rw-r--r-- | src/ui/contact_info.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/ui/contact_info.c b/src/ui/contact_info.c index 1592a76..05f12a6 100644 --- a/src/ui/contact_info.c +++ b/src/ui/contact_info.c | |||
@@ -95,7 +95,7 @@ _contact_info_reveal_identity(UI_CONTACT_INFO_Handle *handle) | |||
95 | 95 | ||
96 | gtk_stack_set_visible_child( | 96 | gtk_stack_set_visible_child( |
97 | handle->contact_info_stack, | 97 | handle->contact_info_stack, |
98 | GTK_WIDGET(handle->id_drawing_area) | 98 | handle->identity_box |
99 | ); | 99 | ); |
100 | } | 100 | } |
101 | 101 | ||
@@ -355,6 +355,14 @@ ui_contact_info_dialog_init(MESSENGER_Application *app, | |||
355 | handle | 355 | handle |
356 | ); | 356 | ); |
357 | 357 | ||
358 | handle->identity_box = GTK_WIDGET( | ||
359 | gtk_builder_get_object(handle->builder, "identity_box") | ||
360 | ); | ||
361 | |||
362 | handle->name_label = GTK_LABEL( | ||
363 | gtk_builder_get_object(handle->builder, "name_label") | ||
364 | ); | ||
365 | |||
358 | handle->id_drawing_area = GTK_DRAWING_AREA( | 366 | handle->id_drawing_area = GTK_DRAWING_AREA( |
359 | gtk_builder_get_object(handle->builder, "id_drawing_area") | 367 | gtk_builder_get_object(handle->builder, "id_drawing_area") |
360 | ); | 368 | ); |
@@ -366,6 +374,10 @@ ui_contact_info_dialog_init(MESSENGER_Application *app, | |||
366 | handle | 374 | handle |
367 | ); | 375 | ); |
368 | 376 | ||
377 | handle->id_entry = GTK_ENTRY( | ||
378 | gtk_builder_get_object(handle->builder, "id_entry") | ||
379 | ); | ||
380 | |||
369 | handle->back_button = GTK_BUTTON( | 381 | handle->back_button = GTK_BUTTON( |
370 | gtk_builder_get_object(handle->builder, "back_button") | 382 | gtk_builder_get_object(handle->builder, "back_button") |
371 | ); | 383 | ); |
@@ -428,9 +440,13 @@ ui_contact_info_dialog_update(UI_CONTACT_INFO_Handle *handle, | |||
428 | else | 440 | else |
429 | handle->qr = NULL; | 441 | handle->qr = NULL; |
430 | 442 | ||
443 | gtk_label_set_text(handle->name_label, name? name : ""); | ||
444 | |||
431 | if (handle->id_drawing_area) | 445 | if (handle->id_drawing_area) |
432 | gtk_widget_queue_draw(GTK_WIDGET(handle->id_drawing_area)); | 446 | gtk_widget_queue_draw(GTK_WIDGET(handle->id_drawing_area)); |
433 | 447 | ||
448 | gtk_entry_set_text(handle->id_entry, key? key : ""); | ||
449 | |||
434 | gtk_widget_set_sensitive( | 450 | gtk_widget_set_sensitive( |
435 | GTK_WIDGET(handle->reveal_identity_button), | 451 | GTK_WIDGET(handle->reveal_identity_button), |
436 | key? TRUE : FALSE | 452 | key? TRUE : FALSE |