}
static void
-dockapp_set_mask(GtkWidget *dockwin, GtkWidget *iconwin)
+dockapp_set_mask(GtkWidget *dockwin, GtkWidget *iconwin, char **xpm)
{
GdkPixbuf *pixbuf;
GdkPixmap *pixmap;
GdkBitmap *mask;
- pixbuf = gdk_pixbuf_new_from_xpm_data((const char **)master_xpm);
+ pixbuf = gdk_pixbuf_new_from_xpm_data((const char **)xpm);
gdk_pixbuf_render_pixmap_and_mask(pixbuf, &pixmap, &mask, 127);
g_object_unref(pixbuf);
if (!pixmap) {
- printf("Could not load master pixmap\n");
+ printf("Could not load pixmap\n");
exit(1);
}
gtk_widget_realize(iconwin);
gdk_window_set_icon(dockwin->window, iconwin->window, NULL, NULL);
- dockapp_set_mask(dockwin, iconwin);
+ dockapp_set_mask(dockwin, iconwin, master_xpm);
hvclock_init(dockwin, iconwin);