Fix segfault when the tooltip has no background in config

git-svn-id: http://tint2.googlecode.com/svn/trunk@639 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
o9000 2011-07-22 10:02:07 +00:00 committed by mrovi%interfete-web-club.com@gtempaccount.com
parent 2a7ceb537d
commit cfd2bde7e4

View file

@ -62,6 +62,8 @@ void init_tooltip()
{
if (!g_tooltip.font_desc)
g_tooltip.font_desc = pango_font_description_from_string("sans 10");
if (g_tooltip.bg == 0)
g_tooltip.bg = &g_array_index(backgrounds, Background, 0);
XSetWindowAttributes attr;
attr.override_redirect = True;