diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-01-23 19:29:16 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-01-23 20:11:24 +0800 |
commit | 908b396bdccff3c3056a4616ae43b40d5dead990 (patch) | |
tree | 3dd6d8091958a6dc63f61ae2564be4aaaa51e23b /libempathy-gtk/empathy-irc-network-dialog.c | |
parent | 65c7d23af61ed8f6980e8bba4cb8c94c67d75977 (diff) | |
download | gsoc2013-empathy-908b396bdccff3c3056a4616ae43b40d5dead990.tar.gz gsoc2013-empathy-908b396bdccff3c3056a4616ae43b40d5dead990.tar.zst gsoc2013-empathy-908b396bdccff3c3056a4616ae43b40d5dead990.zip |
IRC network dialog: use the use the right style for the buttons
Diffstat (limited to 'libempathy-gtk/empathy-irc-network-dialog.c')
-rw-r--r-- | libempathy-gtk/empathy-irc-network-dialog.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-irc-network-dialog.c b/libempathy-gtk/empathy-irc-network-dialog.c index 69f83637d..e837627ff 100644 --- a/libempathy-gtk/empathy-irc-network-dialog.c +++ b/libempathy-gtk/empathy-irc-network-dialog.c @@ -460,6 +460,8 @@ empathy_irc_network_dialog_show (EmpathyIrcNetwork *network, GtkTreeSelection *selection; GtkTreeViewColumn *column; gchar *filename; + GtkWidget *sw, *toolbar; + GtkStyleContext *context; g_return_val_if_fail (network != NULL, NULL); @@ -488,6 +490,8 @@ empathy_irc_network_dialog_show (EmpathyIrcNetwork *network, "button_remove", &dialog->button_remove, "button_up", &dialog->button_up, "button_down", &dialog->button_down, + "scrolledwindow_network_server", &sw, + "toolbar_network_server", &toolbar, NULL); g_free (filename); @@ -568,6 +572,13 @@ empathy_irc_network_dialog_show (EmpathyIrcNetwork *network, GTK_WINDOW (parent)); gtk_window_set_modal (GTK_WINDOW (dialog->dialog), TRUE); + /* 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); + irc_network_dialog_network_update_buttons (dialog); gtk_widget_show_all (dialog->dialog); |