From 8aa0b4901a0d0cd36385bce4577a356301384bc7 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Thu, 16 Apr 2009 12:29:44 +0000 Subject: [PATCH] Remove unused edit-chatroom dialog from the UI file. gtk_builder_add_from_file creates all toplevel objects so the edit dialog popup in the same time as the manage chatroom dialog. From: Xavier Claessens svn path=/trunk/; revision=2874 --- src/empathy-chatrooms-window.c | 27 +---- src/empathy-chatrooms-window.ui | 195 -------------------------------- 2 files changed, 2 insertions(+), 220 deletions(-) diff --git a/src/empathy-chatrooms-window.c b/src/empathy-chatrooms-window.c index 5a829ceb..abd6447f 100644 --- a/src/empathy-chatrooms-window.c +++ b/src/empathy-chatrooms-window.c @@ -437,21 +437,7 @@ chatrooms_window_model_get_selected (EmpathyChatroomsWindow *window) static void chatrooms_window_model_action_selected (EmpathyChatroomsWindow *window) { - EmpathyChatroom *chatroom; - GtkTreeView *view; - GtkTreeModel *model; - - view = GTK_TREE_VIEW (window->treeview); - model = gtk_tree_view_get_model (view); - - chatroom = chatrooms_window_model_get_selected (window); - if (!chatroom) { - return; - } - - //empathy_edit_chatroom_dialog_show (GTK_WINDOW (window->window), chatroom); - - g_object_unref (chatroom); + /* FIXME: This is still not implemented since Gossip fork */ } static void @@ -496,16 +482,7 @@ static void chatrooms_window_button_edit_clicked_cb (GtkWidget *widget, EmpathyChatroomsWindow *window) { - EmpathyChatroom *chatroom; - - chatroom = chatrooms_window_model_get_selected (window); - if (!chatroom) { - return; - } - - //empathy_edit_chatroom_dialog_show (GTK_WINDOW (window->window), chatroom); - - g_object_unref (chatroom); + /* FIXME: This is still not implemented since Gossip fork */ } static void diff --git a/src/empathy-chatrooms-window.ui b/src/empathy-chatrooms-window.ui index e92de593..3d18051d 100644 --- a/src/empathy-chatrooms-window.ui +++ b/src/empathy-chatrooms-window.ui @@ -1,201 +1,6 @@ - - True - 5 - Edit Favorite Room - False - chatrooms - gtk-edit - GDK_WINDOW_TYPE_HINT_DIALOG - False - - - True - 2 - - - True - 5 - 5 - 2 - 12 - 6 - - - - - - True - True - Join this chat room when Empathy starts and you are connected - Join room on start_up - True - True - - - 1 - 2 - 4 - 5 - GTK_FILL - - - - - - True - True - 25 - - - 1 - 2 - - - - - - True - 0 - N_ame: - True - entry_name - - - GTK_FILL - - - - - - True - 0 - _Nickname: - True - entry_nickname - - - 1 - 2 - GTK_FILL - - - - - - True - 0 - S_erver: - True - entry_server - - - 2 - 3 - GTK_FILL - - - - - - True - 0 - _Room: - True - entry_room - - - 3 - 4 - GTK_FILL - - - - - - True - True - - - 1 - 2 - 1 - 2 - - - - - - True - True - - - 1 - 2 - 2 - 3 - - - - - - True - True - - - 1 - 2 - 3 - 4 - - - - - - 1 - - - - - True - GTK_BUTTONBOX_END - - - True - True - True - gtk-cancel - True - - - - - True - True - True - gtk-save - True - - - 1 - - - - - False - GTK_PACK_END - - - - - - checkbutton_auto_connect - button_cancel - button_save - - True 12 -- 2.39.2