Revision 3284 src/main.c

View differences:

main.c
226 226
	GObject *syl_app;
227 227
	PrefsAccount *new_account = NULL;
228 228
	gboolean first_run = FALSE;
229
	gchar *path;
229 230

  
230 231
	app_init();
231 232
	parse_cmd_opt(argc, argv);
......
296 297

  
297 298
	gtkut_widget_init();
298 299

  
300
	path = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, "icons", NULL);
301
	if (is_dir_exist(path)) {
302
		debug_print("icon theme dir: %s\n", path);
303
		stock_pixbuf_set_theme_dir(path);
304
	} else {
305
		g_free(path);
306
		if (g_path_is_absolute(THEMEDIR))
307
			path = g_strconcat(THEMEDIR, NULL);
308
		else
309
			path = g_strconcat(get_startup_dir(), G_DIR_SEPARATOR_S, THEMEDIR, NULL);
310
		if (is_dir_exist(path)) {
311
			debug_print("icon theme dir: %s\n", path);
312
			stock_pixbuf_set_theme_dir(path);
313
		}
314
	}
315
	g_free(path);
316

  
299 317
#ifdef G_OS_WIN32
300 318
	stock_pixbuf_gdk(NULL, STOCK_PIXMAP_SYLPHEED_32, &icon);
301 319
	iconlist = g_list_append(iconlist, icon);

Also available in: Unified diff