pidgin/gtkwebviewtoolbar.c

branch
soc.2013.gobjectification
changeset 35029
f9f672dcaadf
parent 34955
854143116575
child 35094
47964e26263e
child 36910
7899f9edf4f1
equal deleted inserted replaced
35028:1dc1d56107a2 35029:f9f672dcaadf
1527 1527
1528 /* set attention button to be greyed out until we get a conversation */ 1528 /* set attention button to be greyed out until we get a conversation */
1529 gtk_action_set_sensitive(priv->attention, FALSE); 1529 gtk_action_set_sensitive(priv->attention, FALSE);
1530 1530
1531 gtk_action_set_sensitive(priv->smiley, 1531 gtk_action_set_sensitive(priv->smiley,
1532 (gboolean)pidgin_themes_get_proto_smileys(NULL)); 1532 pidgin_themes_get_proto_smileys(NULL) != NULL);
1533 1533
1534 purple_prefs_connect_callback(toolbar, 1534 purple_prefs_connect_callback(toolbar,
1535 PIDGIN_PREFS_ROOT "/conversations/toolbar/wide", 1535 PIDGIN_PREFS_ROOT "/conversations/toolbar/wide",
1536 webviewtoolbar_view_pref_changed, toolbar); 1536 webviewtoolbar_view_pref_changed, toolbar);
1537 g_signal_connect_data(G_OBJECT(toolbar), "realize", 1537 g_signal_connect_data(G_OBJECT(toolbar), "realize",
1630 gtk_action_set_sensitive(priv->attention, 1630 gtk_action_set_sensitive(priv->attention,
1631 conv && prpl && PURPLE_IS_IM_CONVERSATION(conv) && 1631 conv && prpl && PURPLE_IS_IM_CONVERSATION(conv) &&
1632 PURPLE_PLUGIN_PROTOCOL_INFO(prpl)->send_attention != NULL); 1632 PURPLE_PLUGIN_PROTOCOL_INFO(prpl)->send_attention != NULL);
1633 1633
1634 gtk_action_set_sensitive(priv->smiley, 1634 gtk_action_set_sensitive(priv->smiley,
1635 (gboolean)pidgin_themes_get_proto_smileys(priv->sml)); 1635 pidgin_themes_get_proto_smileys(priv->sml) != NULL);
1636 } 1636 }
1637 1637
1638 void 1638 void
1639 gtk_webviewtoolbar_activate(GtkWebViewToolbar *toolbar, 1639 gtk_webviewtoolbar_activate(GtkWebViewToolbar *toolbar,
1640 GtkWebViewAction action) 1640 GtkWebViewAction action)

mercurial