Blame telepathy-account-widgets/tp-account-widgets/tpaw-pixbuf-utils.h

Packit 79f644
/*
Packit 79f644
 * Copyright (C) 2002-2007 Imendio AB
Packit 79f644
 * Copyright (C) 2007-2013 Collabora Ltd.
Packit 79f644
 *
Packit 79f644
 * This library is free software; you can redistribute it and/or
Packit 79f644
 * modify it under the terms of the GNU Lesser General Public
Packit 79f644
 * License as published by the Free Software Foundation; either
Packit 79f644
 * version 2.1 of the License, or (at your option) any later version.
Packit 79f644
 *
Packit 79f644
 * This library is distributed in the hope that it will be useful,
Packit 79f644
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 79f644
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 79f644
 * Lesser General Public License for more details.
Packit 79f644
 *
Packit 79f644
 * You should have received a copy of the GNU Lesser General Public
Packit 79f644
 * License along with this library; if not, write to the Free Software
Packit 79f644
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
Packit 79f644
 * Authors: Mikael Hallendal <micke@imendio.com>
Packit 79f644
 *          Richard Hult <richard@imendio.com>
Packit 79f644
 *          Martyn Russell <martyn@imendio.com>
Packit 79f644
 *          Xavier Claessens <xclaesse@gmail.com>
Packit 79f644
 *          Travis Reitter <travis.reitter@collabora.co.uk>
Packit 79f644
 */
Packit 79f644
Packit 79f644
#ifndef __TPAW_UI_UTILS_H__
Packit 79f644
#define __TPAW_UI_UTILS_H__
Packit 79f644
Packit 79f644
#include <gtk/gtk.h>
Packit 79f644
Packit 79f644
G_BEGIN_DECLS
Packit 79f644
Packit 79f644
GdkPixbuf * tpaw_pixbuf_from_data (gchar *data,
Packit 79f644
    gsize data_size);
Packit 79f644
GdkPixbuf * tpaw_pixbuf_from_data_and_mime (gchar *data,
Packit 79f644
    gsize data_size,
Packit 79f644
    gchar **mime_type);
Packit 79f644
GdkPixbuf * tpaw_pixbuf_scale_down_if_necessary (GdkPixbuf *pixbuf,
Packit 79f644
    gint max_size);
Packit 79f644
GdkPixbuf * tpaw_pixbuf_from_icon_name (const gchar *icon_name,
Packit 79f644
    GtkIconSize icon_size);
Packit 79f644
GdkPixbuf * tpaw_pixbuf_from_icon_name_sized (const gchar *icon_name,
Packit 79f644
    gint size);
Packit 79f644
gchar * tpaw_filename_from_icon_name (const gchar *icon_name,
Packit 79f644
    GtkIconSize icon_size);
Packit 79f644
Packit 79f644
G_END_DECLS
Packit 79f644
Packit 79f644
#endif /*  __TPAW_UI_UTILS_H__ */