cpw.qulogic.gtk3: ec14814c: Fix some more GTK+3 stuff in gtkconv.c.
qulogic at pidgin.im
qulogic at pidgin.im
Tue Feb 16 04:08:14 EST 2010
-----------------------------------------------------------------
Revision: ec14814cea1423aa7fd899c42487ad1128c628d5
Ancestor: 9b9d59b250e6bccf3e4751f96a121b8bfe9def18
Author: qulogic at pidgin.im
Date: 2010-02-16T06:54:06
Branch: im.pidgin.cpw.qulogic.gtk3
URL: http://d.pidgin.im/viewmtn/revision/info/ec14814cea1423aa7fd899c42487ad1128c628d5
Modified files:
pidgin/gtkconv.c
ChangeLog:
Fix some more GTK+3 stuff in gtkconv.c.
-------------- next part --------------
============================================================
--- pidgin/gtkconv.c 83e505cc0822fb83d009700119f1bd8e684af824
+++ pidgin/gtkconv.c a51c1e568e6aaca8918401f3c49f247b7c75ebf2
@@ -3610,6 +3610,17 @@ regenerate_media_items(PidginWindow *win
purple_prpl_get_media_caps(account,
purple_conversation_get_name(conv));
+#if GTK_CHECK_VERSION(2,6,0)
+ gtk_action_set_sensitive(win->audio_call,
+ caps & PURPLE_MEDIA_CAPS_AUDIO
+ ? TRUE : FALSE);
+ gtk_action_set_sensitive(win->video_call,
+ caps & PURPLE_MEDIA_CAPS_VIDEO
+ ? TRUE : FALSE);
+ gtk_action_set_sensitive(win->audio_video_call,
+ caps & PURPLE_MEDIA_CAPS_AUDIO_VIDEO
+ ? TRUE : FALSE);
+#else
gtk_widget_set_sensitive(win->audio_call,
caps & PURPLE_MEDIA_CAPS_AUDIO
? TRUE : FALSE);
@@ -3619,16 +3630,29 @@ regenerate_media_items(PidginWindow *win
gtk_widget_set_sensitive(win->audio_video_call,
caps & PURPLE_MEDIA_CAPS_AUDIO_VIDEO
? TRUE : FALSE);
+#endif
} else if (purple_conversation_get_type(conv)
== PURPLE_CONV_TYPE_CHAT) {
/* for now, don't care about chats... */
+#if GTK_CHECK_VERSION(2,6,0)
+ gtk_action_set_sensitive(win->audio_call, FALSE);
+ gtk_action_set_sensitive(win->video_call, FALSE);
+ gtk_action_set_sensitive(win->audio_video_call, FALSE);
+#else
gtk_widget_set_sensitive(win->audio_call, FALSE);
gtk_widget_set_sensitive(win->video_call, FALSE);
gtk_widget_set_sensitive(win->audio_video_call, FALSE);
+#endif
} else {
+#if GTK_CHECK_VERSION(2,6,0)
+ gtk_action_set_sensitive(win->audio_call, FALSE);
+ gtk_action_set_sensitive(win->video_call, FALSE);
+ gtk_action_set_sensitive(win->audio_video_call, FALSE);
+#else
gtk_widget_set_sensitive(win->audio_call, FALSE);
gtk_widget_set_sensitive(win->video_call, FALSE);
gtk_widget_set_sensitive(win->audio_video_call, FALSE);
+#endif
}
#endif
}
@@ -10208,8 +10232,12 @@ pidgin_conv_window_remove_gtkconv(Pidgin
conv_type = purple_conversation_get_type(gtkconv->active_conv);
index = gtk_notebook_page_num(GTK_NOTEBOOK(win->notebook), gtkconv->tab_cont);
+#if GTK_CHECK_VERSION(2,10,0)
+ g_object_ref_sink(G_OBJECT(gtkconv->tab_cont));
+#else
g_object_ref(gtkconv->tab_cont);
gtk_object_sink(GTK_OBJECT(gtkconv->tab_cont));
+#endif
gtk_notebook_remove_page(GTK_NOTEBOOK(win->notebook), index);
More information about the Commits
mailing list