[Xfce4-commits] [xfce/xfce4-settings] 01/01: Fix the second crash in bug 11568
noreply at xfce.org
noreply at xfce.org
Thu Feb 26 12:50:29 CET 2015
This is an automated email from the git hooks/post-receive script.
bluesabre pushed a commit to branch master
in repository xfce/xfce4-settings.
commit 500f6937ae707c611db246bb2c7c4b05cccb92c9
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Thu Feb 26 06:50:22 2015 -0500
Fix the second crash in bug 11568
---
dialogs/appearance-settings/main.c | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
diff --git a/dialogs/appearance-settings/main.c b/dialogs/appearance-settings/main.c
index cbbb841..3eeb348 100644
--- a/dialogs/appearance-settings/main.c
+++ b/dialogs/appearance-settings/main.c
@@ -664,7 +664,6 @@ appearance_settings_load_icon_themes (preview_data *pd)
GtkIconTheme *icon_theme;
GdkPixbuf *preview;
GdkPixbuf *icon;
- GError *error = NULL;
gchar* preview_icons[4] = { "folder", "go-down", "audio-volume-high", "web-browser" };
int coords[4][2] = { { 4, 4 }, { 24, 4 }, { 4, 24 }, { 24, 24 } };
@@ -722,17 +721,11 @@ appearance_settings_load_icon_themes (preview_data *pd)
for (p = 0; p < 4; p++)
{
if (gtk_icon_theme_has_icon (icon_theme, preview_icons[p]))
- icon = gtk_icon_theme_load_icon (icon_theme, preview_icons[p], 16, 0, &error);
+ icon = gtk_icon_theme_load_icon (icon_theme, preview_icons[p], 16, 0, NULL);
else if (gtk_icon_theme_has_icon (icon_theme, "image-missing"))
- icon = gtk_icon_theme_load_icon (icon_theme, "image-missing", 16, 0, &error);
+ icon = gtk_icon_theme_load_icon (icon_theme, "image-missing", 16, 0, NULL);
- if (!icon)
- {
- g_warning ("Couldn't load icon: %s", error->message);
- g_error_free (error);
- error = NULL;
- }
- else
+ if (icon)
{
gdk_pixbuf_copy_area (icon, 0, 0, 16, 16, preview, coords[p][0], coords[p][1]);
g_object_unref (icon);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list