[anjuta] project-manager: Fix #638878 - $(BUILT_SOURCES): No such file or directory
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] project-manager: Fix #638878 - $(BUILT_SOURCES): No such file or directory
- Date: Mon, 10 Jan 2011 21:15:55 +0000 (UTC)
commit bf8847cc68654e321e3691bb2da5a977c454ac37
Author: Sébastien Granjoux <seb sfo free fr>
Date: Sun Jan 9 12:27:15 2011 +0100
project-manager: Fix #638878 - $(BUILT_SOURCES): No such file or directory
plugins/project-manager/project-view.c | 35 ++++++++++++++++---------------
1 files changed, 18 insertions(+), 17 deletions(-)
---
diff --git a/plugins/project-manager/project-view.c b/plugins/project-manager/project-view.c
index abca2cc..4673a78 100644
--- a/plugins/project-manager/project-view.c
+++ b/plugins/project-manager/project-view.c
@@ -384,25 +384,26 @@ get_icon (GFile *file)
NULL,
&error);
- if (!file_info)
+ if (file_info == NULL)
{
- gchar *name = g_file_get_parse_name (file);
-
- g_warning (G_STRLOC ": Unable to query information for URI: %s: %s", name, error->message);
- g_free (name);
- g_clear_error (&error);
- return NULL;
+ pixbuf = gtk_icon_theme_load_icon (gtk_icon_theme_get_default(),
+ GTK_STOCK_MISSING_IMAGE,
+ ICON_SIZE,
+ GTK_ICON_LOOKUP_GENERIC_FALLBACK,
+ NULL);
+ }
+ else
+ {
+ icon = g_file_info_get_icon(file_info);
+ g_object_get (icon, "names", &icon_names, NULL);
+ icon_info = gtk_icon_theme_choose_icon (gtk_icon_theme_get_default(),
+ icon_names,
+ ICON_SIZE,
+ GTK_ICON_LOOKUP_GENERIC_FALLBACK);
+ pixbuf = gtk_icon_info_load_icon (icon_info, NULL);
+ gtk_icon_info_free(icon_info);
+ g_object_unref (file_info);
}
-
- icon = g_file_info_get_icon(file_info);
- g_object_get (icon, "names", &icon_names, NULL);
- icon_info = gtk_icon_theme_choose_icon (gtk_icon_theme_get_default(),
- icon_names,
- ICON_SIZE,
- GTK_ICON_LOOKUP_GENERIC_FALLBACK);
- pixbuf = gtk_icon_info_load_icon (icon_info, NULL);
- gtk_icon_info_free(icon_info);
- g_object_unref (file_info);
return pixbuf;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]