| 1012 buttons & GTK_WEBVIEW_FORECOLOR || |
1012 buttons & GTK_WEBVIEW_FORECOLOR || |
| 1013 buttons & GTK_WEBVIEW_BACKCOLOR)); |
1013 buttons & GTK_WEBVIEW_BACKCOLOR)); |
| 1014 |
1014 |
| 1015 gtk_action_set_sensitive(priv->image, buttons & GTK_WEBVIEW_IMAGE); |
1015 gtk_action_set_sensitive(priv->image, buttons & GTK_WEBVIEW_IMAGE); |
| 1016 gtk_action_set_sensitive(priv->link, buttons & GTK_WEBVIEW_LINK); |
1016 gtk_action_set_sensitive(priv->link, buttons & GTK_WEBVIEW_LINK); |
| 1017 gtk_action_set_sensitive(priv->smiley, buttons & GTK_WEBVIEW_SMILEY); |
1017 gtk_action_set_sensitive(priv->smiley, (buttons & GTK_WEBVIEW_SMILEY) && |
| |
1018 pidgin_themes_get_proto_smileys(priv->sml)); |
| 1018 } |
1019 } |
| 1019 |
1020 |
| 1020 /* we call this when we want to _set_active the toggle button, it'll |
1021 /* we call this when we want to _set_active the toggle button, it'll |
| 1021 * block the callback that's connected to the button so we don't have to |
1022 * block the callback that's connected to the button so we don't have to |
| 1022 * do the double toggling hack |
1023 * do the double toggling hack |
| 1520 priv->sml = NULL; |
1521 priv->sml = NULL; |
| 1521 |
1522 |
| 1522 /* set attention button to be greyed out until we get a conversation */ |
1523 /* set attention button to be greyed out until we get a conversation */ |
| 1523 gtk_action_set_sensitive(priv->attention, FALSE); |
1524 gtk_action_set_sensitive(priv->attention, FALSE); |
| 1524 |
1525 |
| |
1526 gtk_action_set_sensitive(priv->smiley, |
| |
1527 (gboolean)pidgin_themes_get_proto_smileys(NULL)); |
| |
1528 |
| 1525 purple_prefs_connect_callback(toolbar, |
1529 purple_prefs_connect_callback(toolbar, |
| 1526 PIDGIN_PREFS_ROOT "/conversations/toolbar/wide", |
1530 PIDGIN_PREFS_ROOT "/conversations/toolbar/wide", |
| 1527 webviewtoolbar_view_pref_changed, toolbar); |
1531 webviewtoolbar_view_pref_changed, toolbar); |
| 1528 g_signal_connect_data(G_OBJECT(toolbar), "realize", |
1532 g_signal_connect_data(G_OBJECT(toolbar), "realize", |
| 1529 G_CALLBACK(purple_prefs_trigger_callback), |
1533 G_CALLBACK(purple_prefs_trigger_callback), |
| 1619 /* gray out attention button on protocols that don't support it |
1623 /* gray out attention button on protocols that don't support it |
| 1620 for the time being it is always disabled for chats */ |
1624 for the time being it is always disabled for chats */ |
| 1621 gtk_action_set_sensitive(priv->attention, |
1625 gtk_action_set_sensitive(priv->attention, |
| 1622 conv && prpl && purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_IM && |
1626 conv && prpl && purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_IM && |
| 1623 PURPLE_PLUGIN_PROTOCOL_INFO(prpl)->send_attention != NULL); |
1627 PURPLE_PLUGIN_PROTOCOL_INFO(prpl)->send_attention != NULL); |
| |
1628 |
| |
1629 gtk_action_set_sensitive(priv->smiley, |
| |
1630 (gboolean)pidgin_themes_get_proto_smileys(priv->sml)); |
| 1624 } |
1631 } |
| 1625 |
1632 |
| 1626 void |
1633 void |
| 1627 gtk_webviewtoolbar_activate(GtkWebViewToolbar *toolbar, |
1634 gtk_webviewtoolbar_activate(GtkWebViewToolbar *toolbar, |
| 1628 GtkWebViewAction action) |
1635 GtkWebViewAction action) |