changeset 352:44a801a15c88

- Set the ::fltk::RAW_LABEL flag for widgets getting labels from html.
author jcid
date Fri, 26 Sep 2008 21:07:49 +0200
parents 6fdc59173d00
children 7217a61abc90
files dw/fltkui.cc src/uicmd.cc
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dw/fltkui.cc	Fri Sep 26 16:37:38 2008 +0200
+++ b/dw/fltkui.cc	Fri Sep 26 21:07:49 2008 +0200
@@ -262,6 +262,7 @@
         new ::fltk::Button (allocation->x, allocation->y, allocation->width,
                             allocation->ascent + allocation->descent,
                             label);
+   button->set_flag (::fltk::RAW_LABEL);
    button->callback (widgetCallback, this);
    button->when (::fltk::WHEN_RELEASE);
    return button;
@@ -727,9 +728,11 @@
 ::fltk::Button *FltkCheckButtonResource::createNewButton (core::Allocation
                                                           *allocation)   
 {
-   return
+   ::fltk::CheckButton *cb =
       new ::fltk::CheckButton (allocation->x, allocation->y, allocation->width,
                                allocation->ascent + allocation->descent);
+   cb->set_flag (::fltk::RAW_LABEL);
+   return cb;
 }
 
 // ----------------------------------------------------------------------
@@ -841,6 +844,7 @@
       new ::fltk::RadioButton (allocation->x, allocation->y,
                                allocation->width,
                                allocation->ascent + allocation->descent);
+   button->set_flag (::fltk::RAW_LABEL);
    button->when (::fltk::WHEN_CHANGED);
    button->callback (widgetCallback, this);
    button->type (::fltk::Button::TOGGLE);
@@ -871,6 +875,7 @@
 ::fltk::Item *FltkSelectionResource<I>::Item::createNewWidget (int index)
 {
    ::fltk::Item *item = new ::fltk::Item (name);
+   item->set_flag (::fltk::RAW_LABEL);
    item->user_data ((void *) index);
    return item;
 }
@@ -880,6 +885,7 @@
 FltkSelectionResource<I>::Item::createNewGroupWidget ()
 {
    ::fltk::ItemGroup *itemGroup = new ::fltk::ItemGroup (name);
+   itemGroup->set_flag (::fltk::RAW_LABEL);
    itemGroup->user_data ((void *) -1L);
    return itemGroup;
 }
@@ -1080,6 +1086,7 @@
       new ::fltk::Choice (allocation->x, allocation->y,
                           allocation->width,
                           allocation->ascent + allocation->descent);
+   menu->set_flag (::fltk::RAW_LABEL);
    menu->callback(widgetCallback,this);
    return menu;
 }
@@ -1147,6 +1154,7 @@
       new ::fltk::MultiBrowser (allocation->x, allocation->y,
                                 allocation->width,
                                 allocation->ascent + allocation->descent);
+   menu->set_flag (::fltk::RAW_LABEL);
    menu->callback(widgetCallback,this);
    menu->when(::fltk::WHEN_CHANGED);
    return menu;
--- a/src/uicmd.cc	Fri Sep 26 16:37:38 2008 +0200
+++ b/src/uicmd.cc	Fri Sep 26 21:07:49 2008 +0200
@@ -128,6 +128,7 @@
    Window *win = new Window(ww, wh);
    win->shortcut(0); // Ignore Escape
    win->clear_double_buffer();
+   win->set_flag(RAW_LABEL);
    CustTabGroup *DilloTabs = new CustTabGroup(0, 0, ww, wh);
    DilloTabs->selection_color(156);
    win->add(DilloTabs);