- gtk_box_pack_start (GTK_BOX (information->vbox_avatar),
- information->widget_avatar,
- FALSE, FALSE,
- 6);
- gtk_widget_show (information->widget_avatar);
-
- /* Setup account label/chooser */
- if (information->flags & EMPATHY_CONTACT_WIDGET_EDIT_ACCOUNT) {
- information->widget_account = empathy_account_chooser_new ();
-
- g_signal_connect (information->widget_account, "changed",
- G_CALLBACK (contact_widget_account_changed_cb),
- information);
- } else {
- information->widget_account = gtk_label_new (NULL);
- gtk_label_set_selectable (GTK_LABEL (information->widget_account), TRUE);
- gtk_misc_set_alignment (GTK_MISC (information->widget_account), 0, 0.5);
- }
- gtk_table_attach_defaults (GTK_TABLE (information->table_contact),
- information->widget_account,
- 1, 2, 0, 1);
- gtk_widget_show (information->widget_account);
-
- /* Setup id label/entry */
- if (information->flags & EMPATHY_CONTACT_WIDGET_EDIT_ID) {
- information->widget_id = gtk_entry_new ();
- g_signal_connect (information->widget_id, "focus-out-event",
- G_CALLBACK (contact_widget_id_focus_out_cb),
- information);
- g_signal_connect (information->widget_id, "changed",
- G_CALLBACK (contact_widget_id_changed_cb),
- information);
- } else {
- information->widget_id = gtk_label_new (NULL);
- gtk_label_set_selectable (GTK_LABEL (information->widget_id), TRUE);
- gtk_misc_set_alignment (GTK_MISC (information->widget_id), 0, 0.5);
- }
- gtk_table_attach_defaults (GTK_TABLE (information->table_contact),
- information->widget_id,
- 1, 2, 1, 2);
- gtk_widget_show (information->widget_id);
-
- /* Setup alias label/entry */
- if (information->flags & EMPATHY_CONTACT_WIDGET_EDIT_ALIAS) {
- information->widget_alias = gtk_entry_new ();
- g_signal_connect (information->widget_alias, "focus-out-event",
- G_CALLBACK (contact_widget_entry_alias_focus_event_cb),
- information);
- /* Make return activate the window default (the Close button) */
- gtk_entry_set_activates_default (GTK_ENTRY (information->widget_alias), TRUE);
- } else {
- information->widget_alias = gtk_label_new (NULL);
- gtk_label_set_selectable (GTK_LABEL (information->widget_alias), TRUE);
- gtk_misc_set_alignment (GTK_MISC (information->widget_alias), 0, 0.5);
- }
- gtk_table_attach_defaults (GTK_TABLE (information->table_contact),
- information->widget_alias,
- 1, 2, 2, 3);
- gtk_widget_show (information->widget_alias);
+ gtk_box_pack_start (GTK_BOX (information->vbox_avatar),
+ information->widget_avatar,
+ FALSE, FALSE,
+ 6);
+ gtk_widget_show (information->widget_avatar);
+
+ /* Setup account label/chooser */
+ if (information->flags & EMPATHY_CONTACT_WIDGET_EDIT_ACCOUNT)
+ {
+ information->widget_account = empathy_account_chooser_new ();
+
+ g_signal_connect (information->widget_account, "changed",
+ G_CALLBACK (contact_widget_account_changed_cb),
+ information);
+ }
+ else
+ {
+ information->widget_account = gtk_label_new (NULL);
+ gtk_label_set_selectable (GTK_LABEL (information->widget_account), TRUE);
+ gtk_misc_set_alignment (GTK_MISC (information->widget_account), 0, 0.5);
+ }
+ gtk_table_attach_defaults (GTK_TABLE (information->table_contact),
+ information->widget_account,
+ 1, 2, 0, 1);
+ gtk_widget_show (information->widget_account);
+
+ /* Setup id label/entry */
+ if (information->flags & EMPATHY_CONTACT_WIDGET_EDIT_ID)
+ {
+ information->widget_id = gtk_entry_new ();
+ g_signal_connect (information->widget_id, "focus-out-event",
+ G_CALLBACK (contact_widget_id_focus_out_cb),
+ information);
+ g_signal_connect (information->widget_id, "changed",
+ G_CALLBACK (contact_widget_id_changed_cb),
+ information);
+ }
+ else
+ {
+ information->widget_id = gtk_label_new (NULL);
+ gtk_label_set_selectable (GTK_LABEL (information->widget_id), TRUE);
+ gtk_misc_set_alignment (GTK_MISC (information->widget_id), 0, 0.5);
+ }
+ gtk_table_attach_defaults (GTK_TABLE (information->table_contact),
+ information->widget_id,
+ 1, 2, 1, 2);
+ gtk_widget_show (information->widget_id);
+
+ /* Setup alias label/entry */
+ if (information->flags & EMPATHY_CONTACT_WIDGET_EDIT_ALIAS)
+ {
+ information->widget_alias = gtk_entry_new ();
+ g_signal_connect (information->widget_alias, "focus-out-event",
+ G_CALLBACK (contact_widget_entry_alias_focus_event_cb),
+ information);
+ /* Make return activate the window default (the Close button) */
+ gtk_entry_set_activates_default (GTK_ENTRY (information->widget_alias),
+ TRUE);
+ }
+ else
+ {
+ information->widget_alias = gtk_label_new (NULL);
+ gtk_label_set_selectable (GTK_LABEL (information->widget_alias), TRUE);
+ gtk_misc_set_alignment (GTK_MISC (information->widget_alias), 0, 0.5);
+ }
+ gtk_table_attach_defaults (GTK_TABLE (information->table_contact),
+ information->widget_alias,
+ 1, 2, 2, 3);
+ gtk_widget_show (information->widget_alias);