1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
$NetBSD: patch-ab,v 1.2 2010/02/01 14:39:20 tnn Exp $
--- src/preview_update.c.orig 2009-12-13 03:26:28.000000000 +0000
+++ src/preview_update.c
@@ -1,4 +1,5 @@
#include "preview_update.h"
+#include "preview.h"
#include "main.h"
static gboolean restart_theme_preview_update = TRUE;
@@ -87,6 +88,7 @@ void preview_update_set_title_layout(con
static gboolean update_theme_preview_iterate(gpointer data)
{
GtkListStore *ls = data;
+ GdkPixbuf *preview;
static GtkTreeIter iter;
gchar *name;
@@ -120,11 +122,11 @@ static gboolean update_theme_preview_ite
gtk_tree_model_get(GTK_TREE_MODEL(ls), &iter, 0, &name, -1);
- gtk_list_store_set(GTK_LIST_STORE(ls), &iter, 1,
- preview_theme(name, title_layout, active_window_font,
- inactive_window_font, menu_title_font,
- menu_item_font, osd_font),
- -1);
+ preview = preview_theme(name, title_layout, active_window_font,
+ inactive_window_font, menu_title_font,
+ menu_item_font, osd_font);
+ if (preview)
+ gtk_list_store_set(GTK_LIST_STORE(ls), &iter, 1, preview, -1);
return TRUE;
}
|