diff options
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r-- | src/Toolbar.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 506fb4f..d0bf237 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Toolbar.cc,v 1.23 2002/05/24 11:38:32 fluxgen Exp $ | 25 | // $Id: Toolbar.cc,v 1.24 2002/07/20 09:49:57 fluxgen Exp $ |
26 | 26 | ||
27 | // stupid macros needed to access some functions in version 2 of the GNU C | 27 | // stupid macros needed to access some functions in version 2 of the GNU C |
28 | // library | 28 | // library |
@@ -107,8 +107,8 @@ iconbar(0) | |||
107 | 107 | ||
108 | attrib.background_pixmap = None; | 108 | attrib.background_pixmap = None; |
109 | attrib.background_pixel = attrib.border_pixel = | 109 | attrib.background_pixel = attrib.border_pixel = |
110 | screen->getBorderColor()->getPixel(); | 110 | screen->getBorderColor()->pixel(); |
111 | attrib.colormap = screen->getColormap(); | 111 | attrib.colormap = screen->colormap(); |
112 | attrib.override_redirect = True; | 112 | attrib.override_redirect = True; |
113 | attrib.event_mask = ButtonPressMask | ButtonReleaseMask | | 113 | attrib.event_mask = ButtonPressMask | ButtonReleaseMask | |
114 | EnterWindowMask | LeaveWindowMask; | 114 | EnterWindowMask | LeaveWindowMask; |
@@ -434,7 +434,7 @@ void Toolbar::reconfigure(void) { | |||
434 | if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) { | 434 | if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) { |
435 | frame.base = None; | 435 | frame.base = None; |
436 | XSetWindowBackground(display, frame.window, | 436 | XSetWindowBackground(display, frame.window, |
437 | texture->getColor()->getPixel()); | 437 | texture->color().pixel()); |
438 | } else { | 438 | } else { |
439 | frame.base = | 439 | frame.base = |
440 | image_ctrl->renderImage(frame.width, frame.height, texture); | 440 | image_ctrl->renderImage(frame.width, frame.height, texture); |
@@ -447,7 +447,7 @@ void Toolbar::reconfigure(void) { | |||
447 | if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) { | 447 | if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) { |
448 | frame.label = None; | 448 | frame.label = None; |
449 | XSetWindowBackground(display, frame.window_label, | 449 | XSetWindowBackground(display, frame.window_label, |
450 | texture->getColor()->getPixel()); | 450 | texture->color().pixel()); |
451 | } else { | 451 | } else { |
452 | frame.label = | 452 | frame.label = |
453 | image_ctrl->renderImage(frame.window_label_w, frame.label_h, texture); | 453 | image_ctrl->renderImage(frame.window_label_w, frame.label_h, texture); |
@@ -460,7 +460,7 @@ void Toolbar::reconfigure(void) { | |||
460 | if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) { | 460 | if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) { |
461 | frame.wlabel = None; | 461 | frame.wlabel = None; |
462 | XSetWindowBackground(display, frame.workspace_label, | 462 | XSetWindowBackground(display, frame.workspace_label, |
463 | texture->getColor()->getPixel()); | 463 | texture->color().pixel()); |
464 | } else { | 464 | } else { |
465 | frame.wlabel = | 465 | frame.wlabel = |
466 | image_ctrl->renderImage(frame.workspace_label_w, frame.label_h, texture); | 466 | image_ctrl->renderImage(frame.workspace_label_w, frame.label_h, texture); |
@@ -473,7 +473,7 @@ void Toolbar::reconfigure(void) { | |||
473 | if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) { | 473 | if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) { |
474 | frame.clk = None; | 474 | frame.clk = None; |
475 | XSetWindowBackground(display, frame.clock, | 475 | XSetWindowBackground(display, frame.clock, |
476 | texture->getColor()->getPixel()); | 476 | texture->color().pixel()); |
477 | } else { | 477 | } else { |
478 | frame.clk = | 478 | frame.clk = |
479 | image_ctrl->renderImage(frame.clock_w, frame.label_h, texture); | 479 | image_ctrl->renderImage(frame.clock_w, frame.label_h, texture); |
@@ -486,7 +486,7 @@ void Toolbar::reconfigure(void) { | |||
486 | if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) { | 486 | if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) { |
487 | frame.button = None; | 487 | frame.button = None; |
488 | 488 | ||
489 | frame.button_pixel = texture->getColor()->getPixel(); | 489 | frame.button_pixel = texture->color().pixel(); |
490 | XSetWindowBackground(display, frame.psbutton, frame.button_pixel); | 490 | XSetWindowBackground(display, frame.psbutton, frame.button_pixel); |
491 | XSetWindowBackground(display, frame.nsbutton, frame.button_pixel); | 491 | XSetWindowBackground(display, frame.nsbutton, frame.button_pixel); |
492 | XSetWindowBackground(display, frame.pwbutton, frame.button_pixel); | 492 | XSetWindowBackground(display, frame.pwbutton, frame.button_pixel); |
@@ -506,14 +506,14 @@ void Toolbar::reconfigure(void) { | |||
506 | texture = &(screen->getToolbarStyle()->pressed); | 506 | texture = &(screen->getToolbarStyle()->pressed); |
507 | if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) { | 507 | if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) { |
508 | frame.pbutton = None; | 508 | frame.pbutton = None; |
509 | frame.pbutton_pixel = texture->getColor()->getPixel(); | 509 | frame.pbutton_pixel = texture->color().pixel(); |
510 | } else | 510 | } else |
511 | frame.pbutton = | 511 | frame.pbutton = |
512 | image_ctrl->renderImage(frame.button_w, frame.button_w, texture); | 512 | image_ctrl->renderImage(frame.button_w, frame.button_w, texture); |
513 | if (tmp) image_ctrl->removeImage(tmp); | 513 | if (tmp) image_ctrl->removeImage(tmp); |
514 | 514 | ||
515 | XSetWindowBorder(display, frame.window, | 515 | XSetWindowBorder(display, frame.window, |
516 | screen->getBorderColor()->getPixel()); | 516 | screen->getBorderColor()->pixel()); |
517 | XSetWindowBorderWidth(display, frame.window, screen->getBorderWidth()); | 517 | XSetWindowBorderWidth(display, frame.window, screen->getBorderWidth()); |
518 | 518 | ||
519 | XClearWindow(display, frame.window); | 519 | XClearWindow(display, frame.window); |