From f844303263d19bcecd6bd56772881313a60f0cf5 Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Thu, 10 May 2012 12:04:28 +0000 Subject: [PATCH] Remove that silly focus box from close button. Also hide those (again silly) cursors for text output field. --- ede-notify-daemon/NotifyWindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ede-notify-daemon/NotifyWindow.cpp b/ede-notify-daemon/NotifyWindow.cpp index 989c7e3..6ec1b30 100644 --- a/ede-notify-daemon/NotifyWindow.cpp +++ b/ede-notify-daemon/NotifyWindow.cpp @@ -32,10 +32,12 @@ NotifyWindow::NotifyWindow() : Fl_Window(DEFAULT_W, DEFAULT_H) { box(FL_THIN_UP_BOX); begin(); closeb = new Fl_Button(255, 10, 20, 20, "x"); - closeb->box(FL_NO_BOX); + closeb->box(FL_FLAT_BOX); + closeb->down_box(FL_DOWN_BOX); closeb->color(FL_BACKGROUND2_COLOR); closeb->labelsize(12); closeb->tooltip(_("Close this notification")); + closeb->clear_visible_focus(); closeb->callback(close_cb, this); imgbox = new Fl_Box(10, 10, 48, 48); @@ -44,10 +46,12 @@ NotifyWindow::NotifyWindow() : Fl_Window(DEFAULT_W, DEFAULT_H) { summary = new Fl_Multiline_Output(65, 10, 185, 25); /* use flat box so text can be drawn correctly */ summary->box(FL_FLAT_BOX); + summary->cursor_color(FL_BACKGROUND2_COLOR); body = new Fl_Multiline_Output(65, 31, 185, 25); /* use flat box so text can be drawn correctly */ body->box(FL_FLAT_BOX); + body->cursor_color(FL_BACKGROUND2_COLOR); end(); border(0); }