aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-accounts-dialog.c
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2011-06-15 17:25:42 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2011-06-15 17:58:03 +0800
commitc22df1977b4c9cc7c8b33e24b4f76f8a62310567 (patch)
treea771d0ca26a0eef451d195f66ecebcf26f23cd48 /src/empathy-accounts-dialog.c
parent4cb792eb96fc4d38aa49614fc378e70d2dfc508a (diff)
downloadgsoc2013-empathy-c22df1977b4c9cc7c8b33e24b4f76f8a62310567.tar
gsoc2013-empathy-c22df1977b4c9cc7c8b33e24b4f76f8a62310567.tar.gz
gsoc2013-empathy-c22df1977b4c9cc7c8b33e24b4f76f8a62310567.tar.bz2
gsoc2013-empathy-c22df1977b4c9cc7c8b33e24b4f76f8a62310567.tar.lz
gsoc2013-empathy-c22df1977b4c9cc7c8b33e24b4f76f8a62310567.tar.xz
gsoc2013-empathy-c22df1977b4c9cc7c8b33e24b4f76f8a62310567.tar.zst
gsoc2013-empathy-c22df1977b4c9cc7c8b33e24b4f76f8a62310567.zip
Make the accounts-dialog attractive and GNOME3ish
Diffstat (limited to 'src/empathy-accounts-dialog.c')
-rw-r--r--src/empathy-accounts-dialog.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 14de1d3c5..75b74812b 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -2180,6 +2180,8 @@ accounts_dialog_build_ui (EmpathyAccountsDialog *dialog)
GtkWidget *content_area;
GtkWidget *action_area, *vbox, *hbox, *align;
GtkWidget *alig;
+ GtkWidget *sw, *toolbar;
+ GtkStyleContext *context;
filename = empathy_file_lookup ("empathy-accounts-dialog.ui", "src");
@@ -2196,6 +2198,8 @@ accounts_dialog_build_ui (EmpathyAccountsDialog *dialog)
"hbox_protocol", &priv->hbox_protocol,
"notebook_account", &priv->notebook_account,
"alignment_loading", &alig,
+ "accounts_sw", &sw,
+ "add_remove_toolbar", &toolbar,
NULL);
g_free (filename);
@@ -2324,6 +2328,13 @@ accounts_dialog_build_ui (EmpathyAccountsDialog *dialog)
gtk_window_set_type_hint (GTK_WINDOW (dialog), GDK_WINDOW_TYPE_HINT_DIALOG);
+ /* join the add/remove toolbar to the treeview */
+ context = gtk_widget_get_style_context (sw);
+ gtk_style_context_set_junction_sides (context, GTK_JUNCTION_BOTTOM);
+
+ context = gtk_widget_get_style_context (toolbar);
+ gtk_style_context_set_junction_sides (context, GTK_JUNCTION_TOP);
+
/* add dialog buttons */
gtk_button_box_set_layout (GTK_BUTTON_BOX (action_area), GTK_BUTTONBOX_END);