diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-03-18 17:33:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-18 17:33:27 +0100 |
| commit | 5c482f9d9b357e098f955351f425bc985254ff28 (patch) | |
| tree | c410588ac915886aea4bef3478a12d682bb5ad9f /fluid/align_widget.cxx | |
| parent | a9fb6a979fbcf31c2405d61ea720879bd5507d02 (diff) | |
Fix and update alignment #346 (#701)
* interactive layout alignment rewritten
* interface for new alignment rules
* new alignment dialog box
* user defined layout rules added
* layout rules can be stored in projects, settings, and external files
* Valgrind verification
Diffstat (limited to 'fluid/align_widget.cxx')
| -rw-r--r-- | fluid/align_widget.cxx | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/fluid/align_widget.cxx b/fluid/align_widget.cxx index d66a0cc70..20a85a394 100644 --- a/fluid/align_widget.cxx +++ b/fluid/align_widget.cxx @@ -477,31 +477,3 @@ void align_widget_cb(Fl_Widget*, long how) if (changed) set_modflag(1); } - - -// Set sizes of selected widgets... -void widget_size_cb(Fl_Widget *, long size) { - // Update any selected widgets... - int changed = 0; - for (Fl_Type *o = Fl_Type::first; o; o = o->next) { - if (o->selected && o->is_widget()) { - if (!changed) { - changed = 1; - undo_checkpoint(); - } - - Fl_Widget *w = ((Fl_Widget_Type *)o)->o; - w->labelsize((Fl_Font)size); - Fl_Font f; - int s = (int)size; - Fl_Color c; - ((Fl_Widget_Type *)o)->textstuff(2, f, s, c); - - w->redraw(); - // since this may be a major change, the whole window should be redrawn - if (w->window()) w->window()->redraw(); - } - } - if (changed) - set_modflag(1); -} |
