comparison plugins/docklet/docklet-x11.c @ 10771:acf54edfde3d

[gaim-migrate @ 12379] oops, one line in there was important. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Sat, 02 Apr 2005 15:23:28 +0000
parents 4e64283bf3cb
children 0c90ef51ad66
comparison
equal deleted inserted replaced
10770:cb94f248a74e 10771:acf54edfde3d
110 case away_pending: 110 case away_pending:
111 icon_name = GAIM_STOCK_ICON_AWAY_MSG; 111 icon_name = GAIM_STOCK_ICON_AWAY_MSG;
112 break; 112 break;
113 } 113 }
114 114
115 gtk_image_set_from_stock(GTK_IMAGE(image), icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR);
116
115 #if 0 117 #if 0
116 GdkPixbuf *p; 118 GdkPixbuf *p;
117 GdkBitmap *mask = NULL; 119 GdkBitmap *mask = NULL;
118 120
119 gtk_image_set_from_stock(GTK_IMAGE(image), icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR);
120 p = gtk_widget_render_icon(GTK_WIDGET(image), icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR, NULL); 121 p = gtk_widget_render_icon(GTK_WIDGET(image), icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR, NULL);
121 122
122 if (p && (gdk_pixbuf_get_colorspace(p) == GDK_COLORSPACE_RGB) && (gdk_pixbuf_get_bits_per_sample(p) == 8) 123 if (p && (gdk_pixbuf_get_colorspace(p) == GDK_COLORSPACE_RGB) && (gdk_pixbuf_get_bits_per_sample(p) == 8)
123 && (gdk_pixbuf_get_has_alpha(p)) && (gdk_pixbuf_get_n_channels(p) == 4)) { 124 && (gdk_pixbuf_get_has_alpha(p)) && (gdk_pixbuf_get_n_channels(p) == 4)) {
124 int len = gdk_pixbuf_get_width(p) * gdk_pixbuf_get_height(p); 125 int len = gdk_pixbuf_get_width(p) * gdk_pixbuf_get_height(p);