diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2009-04-03 05:12:13 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-04-03 05:12:13 +0800 |
commit | da68ab65008bff803a3ea7940fa861c7cb055d08 (patch) | |
tree | 5096b9df6c8f0f40ef5d7775644df68b06e78ba8 /e-util/e-gui-utils.c | |
parent | 3a6dd7931ed7787b49a574ebe69eba5f46289fff (diff) | |
download | gsoc2013-evolution-da68ab65008bff803a3ea7940fa861c7cb055d08.tar gsoc2013-evolution-da68ab65008bff803a3ea7940fa861c7cb055d08.tar.gz gsoc2013-evolution-da68ab65008bff803a3ea7940fa861c7cb055d08.tar.bz2 gsoc2013-evolution-da68ab65008bff803a3ea7940fa861c7cb055d08.tar.lz gsoc2013-evolution-da68ab65008bff803a3ea7940fa861c7cb055d08.tar.xz gsoc2013-evolution-da68ab65008bff803a3ea7940fa861c7cb055d08.tar.zst gsoc2013-evolution-da68ab65008bff803a3ea7940fa861c7cb055d08.zip |
Split the attachment button into a separate widget that integrates with
EAttachmentView and EAttachmentStore. Clicking the button works, but I
still have to finish the pop-up menu and drag-and-drop.
Kill e-util/e-gui-utils.c:
e_icon_for_mime_type() replaced by g_content_type_get_icon()
svn path=/branches/kill-bonobo/; revision=37491
Diffstat (limited to 'e-util/e-gui-utils.c')
-rw-r--r-- | e-util/e-gui-utils.c | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/e-util/e-gui-utils.c b/e-util/e-gui-utils.c deleted file mode 100644 index 37d3fc9c48..0000000000 --- a/e-util/e-gui-utils.c +++ /dev/null @@ -1,66 +0,0 @@ -/* - * GUI utility functions - * - * This program 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 of the License, or (at your option) version 3. - * - * 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with the program; if not, see <http://www.gnu.org/licenses/> - * - * - * Authors: - * Miguel de Icaza (miguel@ximian.com) - * Chris Toshok (toshok@ximian.com) - * - * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) - * - */ - -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - -#include <string.h> - -#include "e-gui-utils.h" - -#include <libgnome/gnome-program.h> -#include <libgnomeui/gnome-icon-lookup.h> - -/** - * e_icon_for_mime_type: - * @mime_type: a MIME type - * @size_hint: the size the caller plans to display the icon at - * - * Tries to find an icon representing @mime_type that will display - * nicely at @size_hint by @size_hint pixels. The returned icon - * may or may not actually be that size. - * - * Return value: a pixbuf, which the caller must unref when it is done - **/ -GdkPixbuf * -e_icon_for_mime_type (const char *mime_type, int size_hint) -{ - gchar *icon_name; - GdkPixbuf *pixbuf = NULL; - - icon_name = gnome_icon_lookup ( - gtk_icon_theme_get_default (), - NULL, NULL, NULL, NULL, mime_type, 0, NULL); - - if (icon_name != NULL) { - pixbuf = gtk_icon_theme_load_icon ( - gtk_icon_theme_get_default (), - icon_name, size_hint, 0, NULL); - g_free (icon_name); - } - - return pixbuf; -} |