aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-commands.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-11-07 00:10:19 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-11-07 00:10:19 +0800
commitb5c036538ffb6fbb2ace518ee5b4ad8b2d5c8ef6 (patch)
treecde40f3eb7d416345a1f514e93f974e5834a4727 /src/window-commands.c
parente8efae29aefaf2ab8c549fc298b6564f697f1de1 (diff)
downloadgsoc2013-epiphany-b5c036538ffb6fbb2ace518ee5b4ad8b2d5c8ef6.tar
gsoc2013-epiphany-b5c036538ffb6fbb2ace518ee5b4ad8b2d5c8ef6.tar.gz
gsoc2013-epiphany-b5c036538ffb6fbb2ace518ee5b4ad8b2d5c8ef6.tar.bz2
gsoc2013-epiphany-b5c036538ffb6fbb2ace518ee5b4ad8b2d5c8ef6.tar.lz
gsoc2013-epiphany-b5c036538ffb6fbb2ace518ee5b4ad8b2d5c8ef6.tar.xz
gsoc2013-epiphany-b5c036538ffb6fbb2ace518ee5b4ad8b2d5c8ef6.tar.zst
gsoc2013-epiphany-b5c036538ffb6fbb2ace518ee5b4ad8b2d5c8ef6.zip
More headers fixup.
2003-11-06 Marco Pesenti Gritti <marco@gnome.org> * src/ephy-main.c: * src/ephy-shell.c: More headers fixup. * src/window-commands.c: (window_cmd_help_about): Use gtk icon theme here too.
Diffstat (limited to 'src/window-commands.c')
-rw-r--r--src/window-commands.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index ab51a8eb0..0a45af31e 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -51,8 +51,6 @@
#include <glib/gi18n.h>
#include <libgnomeui/gnome-about.h>
#include <libgnomeui/gnome-stock-icons.h>
-#include <libgnomeui/gnome-icon-theme.h>
-#include <libgnome/gnome-program.h>
#include <libgnomevfs/gnome-vfs-mime-handlers.h>
#include <gtk/gtkeditable.h>
#include <gtk/gtktoggleaction.h>
@@ -897,9 +895,10 @@ window_cmd_help_about (GtkAction *action,
static GtkWidget *about = NULL;
GtkWidget** ptr;
GdkPixbuf *icon;
- char *icon_path;
+ const char *icon_path;
GdkPixbuf *logo;
- GnomeIconTheme *icon_theme;
+ GtkIconTheme *icon_theme;
+ GtkIconInfo *icon_info;
static gchar *authors[] = {
"Marco Pesenti Gritti <marco@gnome.org>",
@@ -925,15 +924,16 @@ window_cmd_help_about (GtkAction *action,
return;
}
- icon_theme = gnome_icon_theme_new ();
- icon_path = gnome_icon_theme_lookup_icon (icon_theme, "web-browser",
- -1, NULL, NULL);
- g_object_unref (icon_theme);
+ icon_theme = gtk_icon_theme_get_default ();
+ icon_info = gtk_icon_theme_lookup_icon (icon_theme, "web-browser", -1, 0);
- if (icon_path)
+ if (icon_info)
{
+
+ icon_path = gtk_icon_info_get_filename (icon_info);
+ g_return_if_fail (icon_path != NULL);
+
logo = gdk_pixbuf_new_from_file (icon_path, NULL);
- g_free (icon_path);
}
else
{
@@ -941,6 +941,8 @@ window_cmd_help_about (GtkAction *action,
g_warning ("Web browser gnome icon not found");
}
+ g_object_unref (icon_theme);
+
about = gnome_about_new(
"Epiphany", VERSION,
"Copyright \xc2\xa9 2002-2003 Marco Pesenti Gritti",