#include <libempathy/empathy-marshal.h>
#include "gossip-ui-utils.h"
-#include "gossip-stock.h"
+#include "empathy-images.h"
#include "gossip-presence-chooser.h"
#include "gossip-status-presets.h"
GtkWidget *combo;
GtkWidget *entry;
GtkWidget *checkbutton;
- GdkPixbuf *pixbuf;
const gchar *default_status;
priv = GET_PRIV (chooser);
G_CALLBACK (presence_chooser_dialog_response_cb),
chooser);
- pixbuf = gossip_pixbuf_for_presence_state (state);
- gtk_image_set_from_pixbuf (GTK_IMAGE (image), pixbuf);
- g_object_unref (pixbuf);
+ gtk_image_set_from_icon_name (GTK_IMAGE (image),
+ gossip_icon_name_for_presence_state (state),
+ GTK_ICON_SIZE_MENU);
if (!store[state]) {
GList *presets, *l;
{
GtkWidget *item;
GtkWidget *image;
- const gchar *stock;
+ const gchar *icon_name;
item = gtk_image_menu_item_new_with_label (str);
- stock = gossip_stock_for_state (state);
+ icon_name = gossip_icon_name_for_presence_state (state);
if (custom) {
g_signal_connect (
chooser);
}
- image = gtk_image_new_from_stock (stock, GTK_ICON_SIZE_MENU);
+ image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU);
gtk_widget_show (image);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
{
GossipPresenceChooserPriv *priv;
McPresence state;
- GdkPixbuf *pixbuf;
static gboolean on = FALSE;
priv = GET_PRIV (chooser);
state = priv->flash_state_2;
}
- pixbuf = gossip_pixbuf_for_presence_state (state);
- gtk_image_set_from_pixbuf (GTK_IMAGE (priv->image), pixbuf);
- g_object_unref (pixbuf);
+ gtk_image_set_from_icon_name (GTK_IMAGE (priv->image),
+ gossip_icon_name_for_presence_state (state),
+ GTK_ICON_SIZE_MENU);
on = !on;
McPresence state)
{
GossipPresenceChooserPriv *priv;
- GdkPixbuf *pixbuf;
g_return_if_fail (GOSSIP_IS_PRESENCE_CHOOSER (chooser));
priv->flash_timeout_id = 0;
}
- pixbuf = gossip_pixbuf_for_presence_state (state);
- gtk_image_set_from_pixbuf (GTK_IMAGE (priv->image), pixbuf);
- g_object_unref (pixbuf);
+ gtk_image_set_from_icon_name (GTK_IMAGE (priv->image),
+ gossip_icon_name_for_presence_state (state),
+ GTK_ICON_SIZE_MENU);
priv->last_state = state;
}