From 9f79b7c5d74f1a82387881121403e755757f8cb3 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Fri, 24 Jun 2011 15:02:58 +0100 Subject: ChatroomsWindow: GNOME 3-ify the Remove button --- src/empathy-chatrooms-window.c | 10 ++++++ src/empathy-chatrooms-window.ui | 70 ++++++++++++++++++++++++++--------------- 2 files changed, 54 insertions(+), 26 deletions(-) (limited to 'src') 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, diff --git a/src/empathy-chatrooms-window.ui b/src/empathy-chatrooms-window.ui index 83f3fd064..973f66e86 100644 --- a/src/empathy-chatrooms-window.ui +++ b/src/empathy-chatrooms-window.ui @@ -37,24 +37,57 @@ - - 150 + True - True - GTK_POLICY_NEVER - GTK_POLICY_AUTOMATIC - GTK_SHADOW_IN - + + 150 True True - True + GTK_POLICY_NEVER + GTK_POLICY_AUTOMATIC + GTK_SHADOW_IN + + + True + True + True + + + + + 0 + + + + + True + False + 1 + + + + Remove + True + False + True + gtk-remove + + + False + True + + + + False + True + 1 + - - 1 - @@ -63,21 +96,6 @@ True 6 end - - - gtk-remove - True - True - True - False - True - - - False - False - 0 - - gtk-close -- cgit v1.2.3 From 0f19e7e7b63a2c457a498bf84d4928db59fb56e4 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Fri, 24 Jun 2011 15:03:48 +0100 Subject: ChatroomsWindow: make the minimum size a bit bigger This patch makes the scrolled window's minimum size request the same as the new size for the status editor's scrolled window. https://bugzilla.gnome.org/show_bug.cgi?id=630943 --- src/empathy-chatrooms-window.ui | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/empathy-chatrooms-window.ui b/src/empathy-chatrooms-window.ui index 973f66e86..dc8e3591f 100644 --- a/src/empathy-chatrooms-window.ui +++ b/src/empathy-chatrooms-window.ui @@ -41,7 +41,8 @@ True - 150 + 408 + 252 True True GTK_POLICY_NEVER -- cgit v1.2.3