[empathy] Connect to style-updated signal



commit 41274d6973eef4628c1a1e26c281b703ecf8f980
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date:   Mon Jan 10 16:38:16 2011 +0000

    Connect to style-updated signal
    
    ... instead of to the deprecated style-set one.

 src/empathy-chat-window.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 94598ad..07b940e 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -219,9 +219,8 @@ chat_window_close_clicked_cb (GtkAction   *action,
 }
 
 static void
-chat_tab_style_set_cb (GtkWidget *hbox,
-				       GtkStyle  *previous_style,
-				       gpointer   user_data)
+chat_tab_style_updated_cb (GtkWidget *hbox,
+			   gpointer   user_data)
 {
 	GtkWidget *button;
 	int char_width, h, w;
@@ -339,8 +338,8 @@ chat_window_create_label (EmpathyChatWindow *window,
 
 		/* React to theme changes and also setup the size correctly.  */
 		g_signal_connect (hbox,
-				  "style-set",
-				  G_CALLBACK (chat_tab_style_set_cb),
+				  "style-updated",
+				  G_CALLBACK (chat_tab_style_updated_cb),
 				  chat);
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]