/* * Copyright (C) 2007 Neil Jagdish Patel * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Author : Neil Jagdish Patel * * Notes : Contains functions allowing Awn to get an icon from XOrg using the * xid. Please note that all icon reading code has been lifted from * libwnck (XUtils.c), so track bugfixes in libwnck. */ #ifndef _AWN_X_H #define _AWN_X_H #include #include #include #define WNCK_I_KNOW_THIS_IS_UNSTABLE 1 #include #include #include GdkPixbuf* awn_x_get_icon (WnckWindow *window, gint width, gint height); void awn_x_set_icon_geometry (gulong xwindow, int x, int y, int width, int height); void awn_x_set_strut (GtkWindow *window); GdkPixbuf * awn_x_get_icon_for_window (WnckWindow *window, gint width, gint height); GdkPixbuf * awn_x_get_icon_for_launcher (GnomeDesktopItem *item, gint width, gint height); #endif