Package: xchat
Version: 2.6.1-1
Severity: normal
Tags: patch

When using an icon theme that provides the "tab close" icon, it appears 
clipped in xchat.

This is because xchat is using gtk_widget_set_usize on the icons. The 
GTK+ documentation strongly recommends not using this function, because 
it can lead to various breakage of the like.

The attached patch fixes the bug, without any other UI change that I 
could notice so far.

Regards,
-- 
 .''`.           Josselin Mouette        /\./\
: :' :           [EMAIL PROTECTED]
`. `'                        [EMAIL PROTECTED]
  `-  Debian GNU/Linux -- The power of freedom
--- src/fe-gtk/gtkutil.c.old    2006-02-19 10:07:07.000000000 +0100
+++ src/fe-gtk/gtkutil.c        2006-02-19 10:07:21.000000000 +0100
@@ -440,7 +440,6 @@
        if (stock)
        {
                img = gtk_image_new_from_stock (stock, GTK_ICON_SIZE_MENU);
-               gtk_widget_set_usize (img, 8, 6);
                gtk_container_add (GTK_CONTAINER (bbox), img);
                gtk_widget_show (img);
        }

Reply via email to