diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2007-07-26 23:59:52 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2007-07-26 23:59:52 +0800 |
commit | 789c0c68fa7eefb7ceed3f59395a5665c6d5d2b9 (patch) | |
tree | f2f8ecc06cedcd846bd3fd133853a06158ce282f /libempathy-gtk/empathy-new-chatroom-dialog.c | |
parent | ce0204886f02193df2c768c175ef02eaaf2d691c (diff) | |
download | gsoc2013-empathy-789c0c68fa7eefb7ceed3f59395a5665c6d5d2b9.tar gsoc2013-empathy-789c0c68fa7eefb7ceed3f59395a5665c6d5d2b9.tar.gz gsoc2013-empathy-789c0c68fa7eefb7ceed3f59395a5665c6d5d2b9.tar.bz2 gsoc2013-empathy-789c0c68fa7eefb7ceed3f59395a5665c6d5d2b9.tar.lz gsoc2013-empathy-789c0c68fa7eefb7ceed3f59395a5665c6d5d2b9.tar.xz gsoc2013-empathy-789c0c68fa7eefb7ceed3f59395a5665c6d5d2b9.tar.zst gsoc2013-empathy-789c0c68fa7eefb7ceed3f59395a5665c6d5d2b9.zip |
Fix Room listing. Fixes bug #460416 (Sjoerd Simons).
2007-07-26 Xavier Claessens <xclaesse@gmail.com>
* libempathy-gtk/empathy-new-chatroom-dialog.c:
* libempathy/empathy-tp-roomlist.c: Fix Room listing. Fixes bug #460416
(Sjoerd Simons).
svn path=/trunk/; revision=201
Diffstat (limited to 'libempathy-gtk/empathy-new-chatroom-dialog.c')
-rw-r--r-- | libempathy-gtk/empathy-new-chatroom-dialog.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/libempathy-gtk/empathy-new-chatroom-dialog.c b/libempathy-gtk/empathy-new-chatroom-dialog.c index 1c84c70bd..7b5adc011 100644 --- a/libempathy-gtk/empathy-new-chatroom-dialog.c +++ b/libempathy-gtk/empathy-new-chatroom-dialog.c @@ -73,7 +73,6 @@ typedef struct { } EmpathyNewChatroomDialog; enum { - COL_IMAGE, COL_NAME, COL_ROOM, COL_COUNT @@ -277,13 +276,6 @@ new_chatroom_dialog_model_add_columns (EmpathyNewChatroomDialog *dialog) view = GTK_TREE_VIEW (dialog->treeview); gtk_tree_view_set_headers_visible (view, FALSE); - /* Chatroom pointer */ - column = gtk_tree_view_column_new (); - gtk_tree_view_column_set_title (column, _("Chat Rooms")); - - cell = gtk_cell_renderer_pixbuf_new (); - gtk_tree_view_column_pack_start (column, cell, FALSE); - cell = gtk_cell_renderer_text_new (); g_object_set (cell, "xpad", (guint) 4, @@ -291,7 +283,10 @@ new_chatroom_dialog_model_add_columns (EmpathyNewChatroomDialog *dialog) "ellipsize", PANGO_ELLIPSIZE_END, NULL); - gtk_tree_view_column_pack_start (column, cell, TRUE); + column = gtk_tree_view_column_new_with_attributes (_("Chat Rooms"), + cell, + "text", COL_NAME, + NULL); gtk_tree_view_column_set_expand (column, TRUE); gtk_tree_view_append_column (view, column); @@ -478,7 +473,6 @@ new_chatroom_dialog_model_selection_changed (GtkTreeSelection *selection gtk_entry_set_text (GTK_ENTRY (dialog->entry_server), server ? server : ""); gtk_entry_set_text (GTK_ENTRY (dialog->entry_room), room ? room : ""); - g_free (server); g_free (room); } |