X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Ftint2conf%2Ftheme_view.c;h=4e169c19cae8c0207d8b7b8403eee136e68bfa74;hb=f9b3fb96571db1b9f67000a907e540888097cf11;hp=b86c9ec4dd08c222be7ec35aac13f51ccf2029f0;hpb=867b2808f8f6409b20faede4cf05433fcca8d005;p=chaz%2Ftint2 diff --git a/src/tint2conf/theme_view.c b/src/tint2conf/theme_view.c index b86c9ec..4e169c1 100644 --- a/src/tint2conf/theme_view.c +++ b/src/tint2conf/theme_view.c @@ -1,3 +1,21 @@ +/************************************************************************** +* +* Tint2conf +* +* Copyright (C) 2009 Thierry lorthiois (lorthiois@bbsoft.fr) from Omega distribution +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License version 2 +* as published by the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +**************************************************************************/ #include "main.h" @@ -107,12 +125,12 @@ gboolean update_snapshot() pixWidth = gdk_pixbuf_get_width(pixbuf); pixHeight = gdk_pixbuf_get_height(pixbuf); - if (g_width_list < pixWidth) { + if (g_width_list != pixWidth) { g_width_list = pixWidth; changeSize = TRUE; } - if (g_height_list < (pixHeight+6)) { - g_height_list = pixHeight+6; + if (g_height_list != (pixHeight+30)) { + g_height_list = pixHeight+30; changeSize = TRUE; } if (changeSize)