Your message dated Tue, 12 Apr 2005 18:07:08 -0400
with message-id <[EMAIL PROTECTED]>
and subject line Bug#300737: fixed in wftk 0.7.1-6
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 21 Mar 2005 14:17:35 +0000
>From [EMAIL PROTECTED] Mon Mar 21 06:17:35 2005
Return-path: <[EMAIL PROTECTED]>
Received: from aiolos.iit.demokritos.gr (iit.demokritos.gr) [143.233.6.1] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DDNip-0006fM-00; Mon, 21 Mar 2005 06:17:35 -0800
Received: from [192.168.3.146] (cil-users.iit.demokritos.gr [143.233.227.239])
        by iit.demokritos.gr (8.11.6+Sun/8.11.6) with ESMTP id j2LE3Qa15420;
        Mon, 21 Mar 2005 16:03:26 +0200 (EET)
Message-Id: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Vassilis Virvilis <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: libwftk-0.7: PushButton::set{Up|Down}Pic surface alternative is buggy
X-Mailer: reportbug 3.8
Date: Mon, 21 Mar 2005 16:19:27 +0200
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: libwftk-0.7
Version: 0.7.1-5
Severity: normal


There are 3 ways to setup a picture in a setup button. I assume that it is
supposed to be equivalent given only for convenience. You can setup a
pushbutton via a resource name, a resource reference or a surface.

I browsed through the code and I discovered that in the third case there is
a scaling going on. However if you call the setUpPic() before the layout
manager (pack()) (BUG_TYPE == 1) there is no effect premasumably because the
widget has no size. The other methods are working correctly (BUG_TYPE == 0).

If you setUpPic() after the packing (BUG_TYPE == 3) there is an extra scaling 
going
on that results into different visual effect than using the other type of
setUpPic() after the pack() (BUG_TYPE == 2)

To summarize:
BUG_TYPE        set{Up|Down}Pic()       before pack()   Result
0               resource                yes             ok
2               resource                no              ok
1               surface                 yes             nothing
3               surface                 no              incorrect scaling

I can dig into it and produce a patch if there is sufficient interest.

--------------------------
#include <wftk/application.h>
#include <wftk/rootwindow.h>
#include <wftk/box.h>
#include <wftk/filler.h>
#include <wftk/pushbutton.h>

#define BUG_TYPE 3
using namespace wftk;

class MyApp : public Application {
private:
    RootWindow *back;
    PushButton *ok_b;

public:
    MyApp(int argc, char** argv) : Application(argc, argv) {
        back = new RootWindow(640, 480, 0, false, true, Surface(), 0, 0);
        // These font resources are used by various gui elements,
        // so you should always register text_font and button_font when
        // using wftk
        Font::registry.load("text_font","wf_opal.ttf, 17, 0xF0F0F0FF, 
0x707070FF");
        Font::registry.load("button_font","wf_opal.ttf, 16, 0xE0E0F0FF, 
0x607f70EE");

        ok_b = new PushButton("OK");

#if BUG_TYPE == 0 || BUG_TYPE == 2
        Surface::registry.load("up", "button_idle.png");
        Surface::registry.load("down", "button_pressed.png");
#elif BUG_TYPE == 1 || BUG_TYPE == 3
        Surface *up = new Surface();
        up->readFromFile("button_idle.png");
        Surface *down = new Surface();
        down->readFromFile("button_pressed.png");
#endif
        Box *main_box = new Box(Box::LEFT_TO_RIGHT);
        Box *left_box = new Box(Box::LEFT_TO_RIGHT);
        Box *right_box = new Box(Box::TOP_TO_BOTTOM);
        back->pack(main_box);
        main_box->packBack(left_box);
        main_box->packBack(right_box);
        left_box->packBack(new Filler(Filler::HORIZONTAL));
        right_box->packBack(new Filler(Filler::VERTICAL));
        
#if BUG_TYPE == 0
        ok_b->setUpPic("up");
        ok_b->setDownPic("down");
#elif BUG_TYPE == 1
        ok_b->setUpPic(*up);
        ok_b->setDownPic(*down);
#endif
        right_box->packBack(ok_b);
#if BUG_TYPE == 2
        ok_b->setUpPic("up");
        ok_b->setDownPic("down");
#elif BUG_TYPE == 3
        ok_b->setUpPic(*up);
        ok_b->setDownPic(*down);
#endif
}

    ~MyApp() {
        printf("MyApp destructor called\n");
    }
};

int main(int argc, char **argv)
{
    return MyApp(argc, argv).exec();
}
--------------------------

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.9
Locale: LANG=el_GR, LC_CTYPE=el_GR (charmap=ISO-8859-7)

Versions of packages libwftk-0.7 depends on:
ii  libc6         2.3.2.ds1-20               GNU C Library: Shared libraries an
ii  libfreetype6  2.1.7-2.3                  FreeType 2 font engine, shared lib
ii  libgcc1       1:3.4.3-6                  GCC support library
ii  libpng12-0    1.2.8rel-1                 PNG library - runtime
ii  libsdl-mixer1 1.2.6-1                    mixer library for Simple DirectMed
ii  libsdl1.2debi 1.2.7+1.2.8cvs20041007-4.1 Simple DirectMedia Layer
ii  libsigc++-1.2 1.2.5-4                    type-safe Signal Framework for C++
ii  libsmpeg0     0.4.5+cvs20030824-1        SDL MPEG Player Library - shared l
ii  libstdc++5    1:3.3.5-8                  The GNU Standard C++ Library v3
ii  xlibmesa-gl [ 4.3.0.dfsg.1-10            Mesa 3D graphics library [XFree86]
ii  zlib1g        1:1.2.2-3                  compression library - runtime

-- no debconf information

---------------------------------------
Received: (at 300737-close) by bugs.debian.org; 12 Apr 2005 22:08:03 +0000
>From [EMAIL PROTECTED] Tue Apr 12 15:08:03 2005
Return-path: <[EMAIL PROTECTED]>
Received: from newraff.debian.org [208.185.25.31] (mail)
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DLTYB-0002iQ-00; Tue, 12 Apr 2005 15:08:03 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
        id 1DLTXI-0006N0-00; Tue, 12 Apr 2005 18:07:08 -0400
From: Michael Koch <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.55 $
Subject: Bug#300737: fixed in wftk 0.7.1-6
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Tue, 12 Apr 2005 18:07:08 -0400
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 2

Source: wftk
Source-Version: 0.7.1-6

We believe that the bug you reported is fixed in the latest version of
wftk, which is due to be installed in the Debian FTP archive:

libwftk-0.7_0.7.1-6_i386.deb
  to pool/main/w/wftk/libwftk-0.7_0.7.1-6_i386.deb
libwftk-dev_0.7.1-6_i386.deb
  to pool/main/w/wftk/libwftk-dev_0.7.1-6_i386.deb
libwftk-doc_0.7.1-6_all.deb
  to pool/main/w/wftk/libwftk-doc_0.7.1-6_all.deb
wftk_0.7.1-6.diff.gz
  to pool/main/w/wftk/wftk_0.7.1-6.diff.gz
wftk_0.7.1-6.dsc
  to pool/main/w/wftk/wftk_0.7.1-6.dsc



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Koch <[EMAIL PROTECTED]> (supplier of updated wftk package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue, 12 Apr 2005 07:01:33 +0000
Source: wftk
Binary: libwftk-0.7 libwftk-dev libwftk-doc
Architecture: source i386 all
Version: 0.7.1-6
Distribution: unstable
Urgency: low
Maintainer: Michael Koch <[EMAIL PROTECTED]>
Changed-By: Michael Koch <[EMAIL PROTECTED]>
Description: 
 libwftk-0.7 - WorldForge Toolkit - a C++ widget toolkit
 libwftk-dev - WorldForge Toolkit - a C++ widget toolkit - development files
 libwftk-doc - WorldForge Toolkit - a C++ widget toolkit - documentation
Closes: 300732 300737
Changes: 
 wftk (0.7.1-6) unstable; urgency=low
 .
   * Applied debian/patches/crash-on-exit-fix.patch and
     debian/patches/pushbutton-scale.patch (Closes: #300732, #300737).
Files: 
 b72b979c94ff5bd67b17d0de0c3218d0 706 libs optional wftk_0.7.1-6.dsc
 4905a9370b5165bfa536b76f24af9bae 29708 libs optional wftk_0.7.1-6.diff.gz
 e501938299545dc7ebda1dd038d32418 346132 doc optional 
libwftk-doc_0.7.1-6_all.deb
 906af94c343233f4bd44c051389fc12d 99478 libdevel optional 
libwftk-dev_0.7.1-6_i386.deb
 b91267df308c88ccc57b4c632c0b97fc 287142 libs optional 
libwftk-0.7_0.7.1-6_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCXEKGJ2Vo11xhU60RAlxsAKDSaHMPd93DJIhQVR4eIaOhMZPQlQCggulN
My1bZo19ABvfzUMm0VYrTc8=
=CDX8
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to