1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 203_background_color.dpatch by <ballombe@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: fix the -fg -bg, -bg2 options.
8
diff -urNad flwm-1.00~/Menu.C flwm-1.00/Menu.C
9
--- flwm-1.00~/Menu.C 2006-02-23 21:32:53.000000000 +0100
10
+++ flwm-1.00/Menu.C 2006-02-23 21:36:32.000000000 +0100
12
new_desktop_input = new Fl_Input(10,30,170,25,"New desktop name:");
13
new_desktop_input->align(FL_ALIGN_TOP_LEFT);
14
new_desktop_input->labelfont(FL_BOLD);
15
+ new_desktop_input->labelcolor(FL_FOREGROUND_COLOR);
17
Fl_Return_Button* b = new Fl_Return_Button(100,60,80,20,"OK");
18
b->callback(new_desktop_ok_cb);
19
+ b->labelcolor(FL_FOREGROUND_COLOR);
20
Fl_Button* b2 = new Fl_Button(10,60,80,20,"Cancel");
21
b2->callback(cancel_cb);
22
+ b2->labelcolor(FL_FOREGROUND_COLOR);
27
w = new FrameWindow(190,90);
28
Fl_Box* l = new Fl_Box(0, 0, 190, 60, "Really log out?");
29
l->labelfont(FL_BOLD);
30
+ l->labelcolor(FL_FOREGROUND_COLOR);
31
Fl_Return_Button* b = new Fl_Return_Button(100,60,80,20,"OK");
33
+ b->labelcolor(FL_FOREGROUND_COLOR);
34
Fl_Button* b2 = new Fl_Button(10,60,80,20,"Cancel");
35
b2->callback(cancel_cb);
36
+ b2->labelcolor(FL_FOREGROUND_COLOR);
43
m.labeltype(FL_NORMAL_LABEL);
44
+ m.labelcolor(FL_FOREGROUND_COLOR);
46
m.labelfont(MENU_FONT_SLOT);
47
m.labelsize(MENU_FONT_SIZE);
48
- m.labelcolor(FL_FOREGROUND_COLOR);
53
if (c->state() == UNMAPPED || c->transient_for()) continue;
54
init(menu[n],(char*)c);
55
menu[n].labeltype(FRAME_LABEL);
56
+ menu[n].labelcolor(FL_FOREGROUND_COLOR);
57
menu[n].callback(frame_callback, c);
58
if (is_active_frame(c)) preset = menu+n;
61
if (c->desktop() == d || !c->desktop() && d == Desktop::current()) {
62
init(menu[n],(char*)c);
63
menu[n].labeltype(FRAME_LABEL);
64
+ menu[n].labelcolor(FL_FOREGROUND_COLOR);
65
menu[n].callback(d == Desktop::current() ?
66
frame_callback : move_frame_callback, c);
67
if (d == Desktop::current() && is_active_frame(c)) preset = menu+n;
73
menu[n].labeltype(TEXT_LABEL);
74
+ menu[n].labelcolor(FL_FOREGROUND_COLOR);
77
int nextlev = (i==num_wmx-1)?0:strspn(wmxlist[i+1], "/")-1;
78
if (nextlev < level) {
82
// fix the menus items so they are indented to align with window names:
83
- while (menu[n].label()) menu[n++].labeltype(TEXT_LABEL);
85
+ while (menu[n].label())
87
+ menu[n].labelcolor(FL_FOREGROUND_COLOR);
88
+ menu[n++].labeltype(TEXT_LABEL);
90
const Fl_Menu_Item* picked =
91
menu->popup(Fl::event_x(), Fl::event_y(), 0, preset);
92
if (picked && picked->callback()) picked->do_callback(0);