[empathy] Always display the 'Room' column (#586678)
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] Always display the 'Room' column (#586678)
- Date: Thu, 26 Nov 2009 10:34:59 +0000 (UTC)
commit 38fb31535052089c55fc012d3356758363ae7bb3
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Nov 25 17:50:01 2009 +0000
Always display the 'Room' column (#586678)
There is no reason to only display it when an account is selected.
src/empathy-chatrooms-window.c | 15 ---------------
1 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/src/empathy-chatrooms-window.c b/src/empathy-chatrooms-window.c
index 6f2c8c2..aae8aac 100644
--- a/src/empathy-chatrooms-window.c
+++ b/src/empathy-chatrooms-window.c
@@ -52,8 +52,6 @@ typedef struct {
GtkWidget *button_remove;
GtkWidget *button_edit;
GtkWidget *button_close;
-
- gint room_column;
} EmpathyChatroomsWindow;
static void chatrooms_window_destroy_cb (GtkWidget *widget,
@@ -278,7 +276,6 @@ chatrooms_window_model_add_columns (EmpathyChatroomsWindow *window)
NULL);
count = gtk_tree_view_append_column (view, column);
gtk_tree_view_column_set_sort_column_id (column, count - 1);
- window->room_column = count - 1;
/* Chatroom auto connect */
cell = gtk_cell_renderer_toggle_new ();
@@ -306,7 +303,6 @@ chatrooms_window_model_refresh_data (EmpathyChatroomsWindow *window,
GtkTreeModel *model;
GtkListStore *store;
GtkTreeIter iter;
- GtkTreeViewColumn *column;
EmpathyAccountChooser *account_chooser;
TpAccount *account;
GList *chatrooms, *l;
@@ -322,17 +318,6 @@ chatrooms_window_model_refresh_data (EmpathyChatroomsWindow *window,
chatrooms = empathy_chatroom_manager_get_chatrooms (window->manager, account);
- /* Sort out columns, we only show the server column for
- * selected protocol types, such as Jabber.
- */
- if (account) {
- column = gtk_tree_view_get_column (view, window->room_column);
- gtk_tree_view_column_set_visible (column, TRUE);
- } else {
- column = gtk_tree_view_get_column (view, window->room_column);
- gtk_tree_view_column_set_visible (column, FALSE);
- }
-
/* Clean out the store */
gtk_list_store_clear (store);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]