preview fixes from syscrash - fix the 0 width thing if no titlebar layout
authorDana Jansens <danakj@orodu.net>
Thu, 31 May 2007 04:57:55 +0000 (04:57 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 31 May 2007 04:57:55 +0000 (04:57 +0000)
src/preview.c

index 663b5a90f6e7733e6dbc501ca2da0c6895b71515..d4bc4f8405a7ce05624c3c13e61b7a931f56f22f 100644 (file)
@@ -286,7 +286,7 @@ static GdkPixbuf* preview_window(RrTheme *theme, const gchar *titlelayout,
             a->texture[0].type = RR_TEXTURE_RGBA;
             a->texture[0].data.rgba.width = 48;
             a->texture[0].data.rgba.height = 48;
-                                               a->texture[0].data.rgba.alpha = 0xff;
+            a->texture[0].data.rgba.alpha = 0xff;
             a->texture[0].data.rgba.data = theme->def_win_icon;
 
             a->surface.parent = title;
@@ -489,8 +489,8 @@ GdkPixbuf *preview_theme(const gchar *name, const gchar *titlelayout,
 
     w = MAX(window_w, menu_w) + 20;
   
-               /* we don't want windows disappearing on us */
-               if (!window_w) window_w = menu_w;
+    /* we don't want windows disappearing on us */
+    if (!window_w) window_w = menu_w;
 
     preview = gdk_pixbuf_new(GDK_COLORSPACE_RGB, TRUE, 8,
                              w, h + 2*(theme->title_height +5) + 1);