[evolution] Bug 580896 – Kill libgnome/gnome-program



commit 1c198bd71100c3c0af0aa1d80bb0e1f51918c4f2
Author: Matthew Barnes <mbarnes redhat com>
Date:   Thu Apr 30 16:28:36 2009 -0400

    Bug 580896 â?? Kill libgnome/gnome-program
    
    Removed e-util/e-gui-utils.[ch].
---
 addressbook/gui/contact-editor/e-contact-editor.c |    1 -
 addressbook/gui/widgets/eab-popup-control.c       |    1 -
 calendar/gui/e-meeting-time-sel.c                 |    1 -
 e-util/Makefile.am                                |    2 -
 e-util/e-gui-utils.c                              |   66 ---------------------
 e-util/e-gui-utils.h                              |   29 ---------
 mail/em-format-html-display.c                     |    1 -
 7 files changed, 0 insertions(+), 101 deletions(-)

diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c
index c3a73fb..9eaf989 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -45,7 +45,6 @@
 #include "addressbook/printing/e-contact-print.h"
 #include "addressbook/gui/widgets/eab-gui-util.h"
 #include "e-util/e-util.h"
-#include "e-util/e-gui-utils.h"
 #include "e-util/e-error.h"
 #include "misc/e-dateedit.h"
 #include "misc/e-image-chooser.h"
diff --git a/addressbook/gui/widgets/eab-popup-control.c b/addressbook/gui/widgets/eab-popup-control.c
index de3d21b..6a702f3 100644
--- a/addressbook/gui/widgets/eab-popup-control.c
+++ b/addressbook/gui/widgets/eab-popup-control.c
@@ -33,7 +33,6 @@
 #include <addressbook/gui/contact-editor/e-contact-quick-add.h>
 #include <addressbook/gui/widgets/eab-contact-display.h>
 #include <addressbook/gui/widgets/eab-gui-util.h>
-#include "e-util/e-gui-utils.h"
 
 static void eab_popup_control_set_name (EABPopupControl *pop, const gchar *name);
 static void eab_popup_control_set_email (EABPopupControl *pop, const gchar *email);
diff --git a/calendar/gui/e-meeting-time-sel.c b/calendar/gui/e-meeting-time-sel.c
index 8466dc3..a106a46 100644
--- a/calendar/gui/e-meeting-time-sel.c
+++ b/calendar/gui/e-meeting-time-sel.c
@@ -40,7 +40,6 @@
 #include <misc/e-canvas-utils.h>
 
 #include <misc/e-dateedit.h>
-#include <e-util/e-gui-utils.h>
 #include <e-util/e-cursor.h>
 #include <e-util/e-util.h>
 
diff --git a/e-util/Makefile.am b/e-util/Makefile.am
index ee54891..e258400 100644
--- a/e-util/Makefile.am
+++ b/e-util/Makefile.am
@@ -53,7 +53,6 @@ eutilinclude_HEADERS = 				\
 	e-event.h				\
 	e-folder-map.h				\
 	e-fsutils.h				\
-	e-gui-utils.h				\
 	e-html-utils.h				\
 	e-icon-factory.h			\
 	e-import.h				\
@@ -95,7 +94,6 @@ libeutil_la_SOURCES =				\
 	e-event.c				\
 	e-folder-map.c				\
 	e-fsutils.c				\
-	e-gui-utils.c				\
 	e-html-utils.c				\
 	e-icon-factory.c			\
 	e-import.c				\
diff --git a/e-util/e-gui-utils.c b/e-util/e-gui-utils.c
deleted file mode 100644
index 37d3fc9..0000000
--- 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;
-}
diff --git a/e-util/e-gui-utils.h b/e-util/e-gui-utils.h
deleted file mode 100644
index d7552d5..0000000
--- a/e-util/e-gui-utils.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * 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:
- *
- * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
- *
- */
-
-#ifndef E_GUI_UTILS_H
-#define E_GUI_UTILS_H
-
-#include <gtk/gtk.h>
-
-GdkPixbuf *e_icon_for_mime_type          (const char *mime_type, int size);
-
-#endif /* E_GUI_UTILS_H */
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c
index 7897058..1fa5809 100644
--- a/mail/em-format-html-display.c
+++ b/mail/em-format-html-display.c
@@ -69,7 +69,6 @@
 #include <e-util/e-util-private.h>
 
 #include <libedataserver/e-msgport.h>
-#include <e-util/e-gui-utils.h>
 #include <e-util/e-dialog-utils.h>
 #include <e-util/e-icon-factory.h>
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]