[empathy] Do not use deprecated GTK symbols



commit cd798ab3c9d123c271245dea28682e3b85d3f9de
Author: Xavier Claessens <xclaesse gmail com>
Date:   Tue Apr 13 16:12:25 2010 +0200

    Do not use deprecated GTK symbols

 libempathy-gtk/empathy-chat.c         |    2 +-
 libempathy-gtk/empathy-geometry.c     |    2 +-
 libempathy-gtk/empathy-video-widget.c |    2 +-
 src/empathy-chat-window.c             |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index 93e801c..b06329a 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -3110,7 +3110,7 @@ empathy_chat_paste (EmpathyChat *chat)
 	priv = GET_PRIV (chat);
 
 	if (priv->tp_chat == NULL ||
-	    !GTK_WIDGET_IS_SENSITIVE (chat->input_text_view))
+	    !gtk_widget_is_sensitive (chat->input_text_view))
 		return;
 
 	buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (chat->input_text_view));
diff --git a/libempathy-gtk/empathy-geometry.c b/libempathy-gtk/empathy-geometry.c
index 9a3e1f7..79730d6 100644
--- a/libempathy-gtk/empathy-geometry.c
+++ b/libempathy-gtk/empathy-geometry.c
@@ -140,7 +140,7 @@ empathy_geometry_save (GtkWindow *window,
   g_return_if_fail (GTK_IS_WINDOW (window));
   g_return_if_fail (!EMP_STR_EMPTY (name));
 
-  if (!GTK_WIDGET_VISIBLE (window))
+  if (!gtk_widget_get_visible (GTK_WIDGET (window)))
     return;
 
   /* escape the name so that unwanted characters such as # are removed */
diff --git a/libempathy-gtk/empathy-video-widget.c b/libempathy-gtk/empathy-video-widget.c
index 902e5cd..a3b13fd 100644
--- a/libempathy-gtk/empathy-video-widget.c
+++ b/libempathy-gtk/empathy-video-widget.c
@@ -414,7 +414,7 @@ empathy_video_widget_sync_message_cb (GstBus *bus, GstMessage *message,
 
   if (gst_structure_has_name (s, "prepare-xwindow-id"))
     {
-      g_assert (GTK_WIDGET_REALIZED (GTK_WIDGET (self)));
+      g_assert (gtk_widget_get_realized (GTK_WIDGET (self)));
       gst_x_overlay_set_xwindow_id (GST_X_OVERLAY (priv->overlay),
         GDK_WINDOW_XID (gtk_widget_get_window (GTK_WIDGET (self))));
     }
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 1e43730..6e80bb4 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -389,7 +389,7 @@ chat_window_contact_menu_update (EmpathyChatWindowPriv *priv,
 		"/chats_menubar/menu_contact");
 	orig_submenu = gtk_menu_item_get_submenu (GTK_MENU_ITEM (menu));
 
-	if (orig_submenu == NULL || !GTK_WIDGET_VISIBLE (orig_submenu)) {
+	if (orig_submenu == NULL || !gtk_widget_get_visible (orig_submenu)) {
 		submenu = empathy_chat_get_contact_menu (priv->current_chat);
 		gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu), submenu);
 		gtk_widget_show (menu);



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