From 908b396bdccff3c3056a4616ae43b40d5dead990 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 23 Jan 2012 12:29:16 +0100 Subject: IRC network dialog: use the use the right style for the buttons --- libempathy-gtk/empathy-account-widget-irc.ui | 119 +++++++++++++++------------ libempathy-gtk/empathy-irc-network-dialog.c | 11 +++ 2 files changed, 77 insertions(+), 53 deletions(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-account-widget-irc.ui b/libempathy-gtk/empathy-account-widget-irc.ui index 999fd320a..088bd535a 100644 --- a/libempathy-gtk/empathy-account-widget-irc.ui +++ b/libempathy-gtk/empathy-account-widget-irc.ui @@ -60,8 +60,8 @@ True False - 12 6 + 12 True @@ -70,6 +70,10 @@ Network: + 0 + 0 + 1 + 1 @@ -80,8 +84,10 @@ Character set: - 1 0 + 1 + 1 + 1 @@ -91,6 +97,9 @@ 1 + 0 + 1 + 1 @@ -101,6 +110,8 @@ 1 1 + 1 + 1 @@ -140,14 +151,15 @@ True False - 6 6 + 6 - + True True never in + True True @@ -160,81 +172,73 @@ + 0 + 0 + 1 + 1 - + True - False - 6 - start + 1 + - - gtk-add + + Add… True True - True - False - False - True + True + list-add-symbolic + True - False - False - 0 - - gtk-remove + + Remove True True - True - False - False - True + True + list-remove-symbolic + True - False - False - 1 - - gtk-go-up + + Up True True - True - False - False - True + True + go-up-symbolic + True - False - False - 2 - - gtk-go-down + + Down True True - True - False - False - True + True + go-down-symbolic + True - False - False - 3 - 1 + 0 + 1 + 1 + 1 @@ -350,12 +354,6 @@ 1 - - - - - - True @@ -385,8 +383,8 @@ True False - 12 6 + 12 True @@ -396,6 +394,8 @@ 1 2 + 1 + 1 @@ -406,7 +406,10 @@ Quit message: + 3 2 + 1 + 1 @@ -419,6 +422,8 @@ 1 1 + 1 + 1 @@ -431,8 +436,10 @@ entry_nick - 1 0 + 1 + 1 + 1 @@ -445,6 +452,9 @@ 0 + 0 + 1 + 1 @@ -456,6 +466,9 @@ 1 + 0 + 1 + 1 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); -- cgit v1.2.3