[empathy] No need to pass twice the same param to chat_window_contact_menu_update()
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] No need to pass twice the same param to chat_window_contact_menu_update()
- Date: Fri, 28 Sep 2012 10:09:57 +0000 (UTC)
commit 863beae29119b3a230511c6968b245ae747f4181
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Sep 27 12:39:17 2012 +0200
No need to pass twice the same param to chat_window_contact_menu_update()
src/empathy-chat-window.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 8dec7c0..674be15 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -595,8 +595,7 @@ chat_window_conversation_menu_update (EmpathyChatWindow *self)
}
static void
-chat_window_contact_menu_update (EmpathyChatWindow *self,
- EmpathyChatWindow *window)
+chat_window_contact_menu_update (EmpathyChatWindow *self)
{
GtkWidget *menu, *submenu, *orig_submenu;
@@ -630,7 +629,7 @@ chat_window_contact_menu_update (EmpathyChatWindow *self,
{
tp_g_signal_connect_object (orig_submenu,
"notify::visible",
- (GCallback)_submenu_notify_visible_changed_cb, window, 0);
+ (GCallback)_submenu_notify_visible_changed_cb, self, 0);
}
self->priv->updating_menu = FALSE;
@@ -817,7 +816,7 @@ chat_window_update (EmpathyChatWindow *self,
menu watching. */
if (update_contact_menu)
{
- chat_window_contact_menu_update (self, self);
+ chat_window_contact_menu_update (self);
}
chat_window_title_update (self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]