diff options
author | Marco Barisione <marco.barisione@collabora.co.uk> | 2013-07-30 16:08:34 +0100 |
---|---|---|
committer | Marco Barisione <marco.barisione@collabora.co.uk> | 2013-08-20 11:03:06 +0100 |
commit | a56fa2a95e93ad68ca08f336178b26baf3b3f29d (patch) | |
tree | 547ac5a682a4fc8c4f8281d1f1bb4e7a39ff8daa /tp-account-widgets/tpaw-pixbuf-utils.h | |
parent | 3abe4df5f32c37e968d0556c755b8387d9f1f771 (diff) | |
download | telepathy-account-widgets-a56fa2a95e93ad68ca08f336178b26baf3b3f29d.tar.gz |
pixbuf-utils: copy the generic pixbuf-related utily functions from Empathy
This commit also changes the licence of the moved code from GPL to LGPL.
See GOSSIP-RELICENSING.txt for details.
https://bugzilla.gnome.org/show_bug.cgi?id=699492
Diffstat (limited to 'tp-account-widgets/tpaw-pixbuf-utils.h')
-rw-r--r-- | tp-account-widgets/tpaw-pixbuf-utils.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/tp-account-widgets/tpaw-pixbuf-utils.h b/tp-account-widgets/tpaw-pixbuf-utils.h new file mode 100644 index 00000000..0521f71a --- /dev/null +++ b/tp-account-widgets/tpaw-pixbuf-utils.h @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2002-2007 Imendio AB + * Copyright (C) 2007-2013 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * Authors: Mikael Hallendal <micke@imendio.com> + * Richard Hult <richard@imendio.com> + * Martyn Russell <martyn@imendio.com> + * Xavier Claessens <xclaesse@gmail.com> + * Travis Reitter <travis.reitter@collabora.co.uk> + */ + +#ifndef __TPAW_UI_UTILS_H__ +#define __TPAW_UI_UTILS_H__ + +#include <gtk/gtk.h> + +G_BEGIN_DECLS + +GdkPixbuf * tpaw_pixbuf_from_data (gchar *data, + gsize data_size); +GdkPixbuf * tpaw_pixbuf_from_data_and_mime (gchar *data, + gsize data_size, + gchar **mime_type); +GdkPixbuf * tpaw_pixbuf_scale_down_if_necessary (GdkPixbuf *pixbuf, + gint max_size); +GdkPixbuf * tpaw_pixbuf_from_icon_name (const gchar *icon_name, + GtkIconSize icon_size); +GdkPixbuf * tpaw_pixbuf_from_icon_name_sized (const gchar *icon_name, + gint size); +gchar * tpaw_filename_from_icon_name (const gchar *icon_name, + GtkIconSize icon_size); + +G_END_DECLS + +#endif /* __TPAW_UI_UTILS_H__ */ |