diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-12-19 21:28:45 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-12-22 17:46:19 +0800 |
commit | c6340f58a4d01b70c59d224ece8994e613d0fd47 (patch) | |
tree | bb1f80aec5a7b77bb4aea1d86bd4ab5f45237abf | |
parent | 4ac8b47ea3be8a91f2ccc1c0a49aaa69e4aaed9e (diff) | |
download | gsoc2013-empathy-c6340f58a4d01b70c59d224ece8994e613d0fd47.tar gsoc2013-empathy-c6340f58a4d01b70c59d224ece8994e613d0fd47.tar.gz gsoc2013-empathy-c6340f58a4d01b70c59d224ece8994e613d0fd47.tar.bz2 gsoc2013-empathy-c6340f58a4d01b70c59d224ece8994e613d0fd47.tar.lz gsoc2013-empathy-c6340f58a4d01b70c59d224ece8994e613d0fd47.tar.xz gsoc2013-empathy-c6340f58a4d01b70c59d224ece8994e613d0fd47.tar.zst gsoc2013-empathy-c6340f58a4d01b70c59d224ece8994e613d0fd47.zip |
display the editor on top
-rw-r--r-- | src/empathy-accounts-dialog.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index 0eb3a2a1f..cab16bf55 100644 --- a/src/empathy-accounts-dialog.c +++ b/src/empathy-accounts-dialog.c @@ -746,7 +746,7 @@ account_dialog_got_self_contact (TpConnection *conn, GObject *dialog) { EmpathyAccountsDialogPriv *priv = GET_PRIV (dialog); - GtkWidget *editor; + GtkWidget *editor, *alig; if (in_error != NULL) { @@ -756,13 +756,18 @@ account_dialog_got_self_contact (TpConnection *conn, return; } + alig = gtk_alignment_new (0.5, 0, 1, 1); + /* create the contact info editor for this account */ editor = empathy_contact_widget_new (contact, EMPATHY_CONTACT_WIDGET_EDIT_ALIAS | EMPATHY_CONTACT_WIDGET_EDIT_AVATAR | EMPATHY_CONTACT_WIDGET_NO_STATUS | EMPATHY_CONTACT_WIDGET_EDIT_DETAILS); - gtk_box_pack_start (GTK_BOX (priv->dialog_content), editor, FALSE, FALSE, 0); + + gtk_box_pack_start (GTK_BOX (priv->dialog_content), alig, TRUE, TRUE, 0); + gtk_container_add (GTK_CONTAINER (alig), editor); + gtk_widget_show (alig); gtk_widget_show (editor); } @@ -783,7 +788,6 @@ account_dialog_create_dialog_content (EmpathyAccountsDialog *dialog, // (gpointer *) &priv->setting_widget_object); priv->dialog_content = gtk_vbox_new (FALSE, 6); - // FIXME: should align to the top gtk_container_add (GTK_CONTAINER (priv->alignment_settings), priv->dialog_content); gtk_widget_show (priv->dialog_content); |