changeset 1988:91bb7ace39f7

fltk1's copy_label() calls redraw_label()
author corvid <corvid@lavabit.com>
date Thu, 28 Apr 2011 19:31:47 +0000
parents cf8f1cb01f6a
children 379f3bede951
files src/ui.cc src/uicmd.cc
diffstat 2 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/ui.cc	Thu Apr 28 16:09:30 2011 +0000
+++ b/src/ui.cc	Thu Apr 28 19:31:47 2011 +0000
@@ -209,7 +209,6 @@
       copy_label(lbl);
       //measure_label(w,h);
       //size(w+padding,this->h());
-      redraw_label();
    }
 };
 
@@ -964,7 +963,6 @@
          BugMeter->image(icons->ImgMeterBug);
       snprintf(str, 32, "%d", n_bug);
       BugMeter->copy_label(str);
-      BugMeter->redraw_label();
       new_w = strlen(str)*9 + 20;
    }
    BugMeter->size(new_w, BugMeter->h());
--- a/src/uicmd.cc	Thu Apr 28 16:09:30 2011 +0000
+++ b/src/uicmd.cc	Thu Apr 28 19:31:47 2011 +0000
@@ -317,7 +317,6 @@
       // Avoid unnecessary redraws
       if (strcmp(child(idx)->label(), title)) {
          child(idx)->copy_label(title);
-         child(idx)->redraw_label();
       }
    }
 }
@@ -1151,7 +1150,6 @@
          snprintf(title + i, 4, "...");
       }
       BW2UI(bw)->window()->copy_label(title);
-      BW2UI(bw)->window()->redraw_label();
    }
    BW2UI(bw)->tabs()->set_tab_label(BW2UI(bw), label);
 }