pidgin/plugins/themeedit-icon.c

branch
sadrul.gtkblist-theme
changeset 26812
d43061932a7c
parent 26811
72045103fad1
child 26813
c1a058a2466e
equal deleted inserted replaced
26811:72045103fad1 26812:d43061932a7c
37 PIDGIN_ICON_SIZE_TANGO_MICROSCOPIC, 37 PIDGIN_ICON_SIZE_TANGO_MICROSCOPIC,
38 PIDGIN_ICON_SIZE_TANGO_EXTRA_SMALL, 38 PIDGIN_ICON_SIZE_TANGO_EXTRA_SMALL,
39 PIDGIN_ICON_SIZE_TANGO_SMALL, 39 PIDGIN_ICON_SIZE_TANGO_SMALL,
40 PIDGIN_ICON_SIZE_TANGO_MEDIUM, 40 PIDGIN_ICON_SIZE_TANGO_MEDIUM,
41 PIDGIN_ICON_SIZE_TANGO_LARGE, 41 PIDGIN_ICON_SIZE_TANGO_LARGE,
42 PIDGIN_ICON_SIZE_TANGO_HUGE, 42 NULL,
43 NULL 43 PIDGIN_ICON_SIZE_TANGO_HUGE, /* We don't have huge status icons, it seems! */
44 }; 44 };
45 45
46 static const struct { 46 static const struct {
47 const char *stockid; 47 const char *stockid;
48 const char *text; 48 const char *text;
65 NULL); 65 NULL);
66 66
67 for (i = 0; statuses[i].stockid; i++) { 67 for (i = 0; statuses[i].stockid; i++) {
68 GtkWidget *image = g_object_get_data(G_OBJECT(window), statuses[i].stockid); 68 GtkWidget *image = g_object_get_data(G_OBJECT(window), statuses[i].stockid);
69 GdkPixbuf *pixbuf = g_object_get_data(G_OBJECT(image), "pixbuf"); 69 GdkPixbuf *pixbuf = g_object_get_data(G_OBJECT(image), "pixbuf");
70 if (!pixbuf)
71 continue;
70 pidgin_icon_theme_set_icon(PIDGIN_ICON_THEME(theme), statuses[i].stockid, 72 pidgin_icon_theme_set_icon(PIDGIN_ICON_THEME(theme), statuses[i].stockid,
71 statuses[i].stockid); 73 statuses[i].stockid);
72 for (j = 0; stocksizes[j]; j++) { 74 for (j = 0; stocksizes[j]; j++) {
73 int width, height; 75 int width, height;
74 GtkIconSize iconsize; 76 GtkIconSize iconsize;

mercurial