diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2011-06-24 22:02:58 +0800 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2011-06-24 22:11:43 +0800 |
commit | 9f79b7c5d74f1a82387881121403e755757f8cb3 (patch) | |
tree | 57f02acba1592bcc0639e7db255872c8bf7b9dd9 /src/empathy-chatrooms-window.c | |
parent | 3e22c794dd4568a69c08ce80cc12e03eb27f836c (diff) | |
download | gsoc2013-empathy-9f79b7c5d74f1a82387881121403e755757f8cb3.tar gsoc2013-empathy-9f79b7c5d74f1a82387881121403e755757f8cb3.tar.gz gsoc2013-empathy-9f79b7c5d74f1a82387881121403e755757f8cb3.tar.bz2 gsoc2013-empathy-9f79b7c5d74f1a82387881121403e755757f8cb3.tar.lz gsoc2013-empathy-9f79b7c5d74f1a82387881121403e755757f8cb3.tar.xz gsoc2013-empathy-9f79b7c5d74f1a82387881121403e755757f8cb3.tar.zst gsoc2013-empathy-9f79b7c5d74f1a82387881121403e755757f8cb3.zip |
ChatroomsWindow: GNOME 3-ify the Remove button
Diffstat (limited to 'src/empathy-chatrooms-window.c')
-rw-r--r-- | src/empathy-chatrooms-window.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/empathy-chatrooms-window.c b/src/empathy-chatrooms-window.c index 1b00548f5..1ebe80bd2 100644 --- a/src/empathy-chatrooms-window.c +++ b/src/empathy-chatrooms-window.c @@ -97,6 +97,8 @@ empathy_chatrooms_window_show (GtkWindow *parent) static EmpathyChatroomsWindow *window = NULL; GtkBuilder *gui; gchar *filename; + GtkWidget *sw, *toolbar; + GtkStyleContext *context; if (window) { gtk_window_present (GTK_WINDOW (window->window)); @@ -110,12 +112,20 @@ empathy_chatrooms_window_show (GtkWindow *parent) "chatrooms_window", &window->window, "hbox_account", &window->hbox_account, "label_account", &window->label_account, + "sw_room_list", &sw, "treeview", &window->treeview, + "toolbar_remove", &toolbar, "button_remove", &window->button_remove, "button_close", &window->button_close, NULL); g_free (filename); + /* join the 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); + empathy_builder_connect (gui, window, "chatrooms_window", "destroy", chatrooms_window_destroy_cb, "button_remove", "clicked", chatrooms_window_button_remove_clicked_cb, |