changeset 444:32cbd6607669

- Set the ScrollGroup as the resizable widget in downloads dpi.
author jcid
date Thu, 30 Oct 2008 21:26:46 +0100
parents 7330f61dce7d
children 92dd688aafce
files ChangeLog dpi/downloads.cc
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Oct 30 21:02:35 2008 +0100
+++ b/ChangeLog	Thu Oct 30 21:26:46 2008 +0100
@@ -16,6 +16,7 @@
    Patches: place (AKA corvid)
 +- Switched SSL-enabled to configure.in (./configure --enable-ssl).
  - Standardised the installation of dpid/dpidrc with auto* tools.
+ - Set the ScrollGroup as the resizable widget in downloads dpi.
    Patches: Jeremy Henty
 +- Allowed compilation with older machines by removing a few C99isms.
  - Added use of inttypes.h when stdint.h isn't found.
--- a/dpi/downloads.cc	Thu Oct 30 21:02:35 2008 +0100
+++ b/dpi/downloads.cc	Thu Oct 30 21:26:46 2008 +0100
@@ -1027,10 +1027,10 @@
 {
    DLItem *dl_item = mDList->get(n_item);
 
-   // Remove the widget from the scroll group
+   // Remove the widget from the packed group
    mPG->remove(dl_item->get_widget());
-   // Resize the scroll group
-   mPG->resize(mWin->w(), 1);
+   // WORKAROUND: without this call FLTK2 doesn't clear the background.
+   mScroll->redraw();
 
    mDList->del(n_item);
    delete(dl_item);
@@ -1093,7 +1093,7 @@
     mScroll->end();
     mScroll->type(ScrollGroup::VERTICAL);
    mWin->end();
-   mWin->resizable(mPG);
+   mWin->resizable(mScroll);
    mWin->callback(dlwin_esc_cb, NULL);
    mWin->show();