Lines Matching defs:new
78 { "notify", ActionNotify }, /* callback new position */
506 PannerWidget req = (PannerWidget) greq, new = (PannerWidget) gnew;
509 if (req->panner.canvas_width < 1) new->panner.canvas_width = 1;
510 if (req->panner.canvas_height < 1) new->panner.canvas_height = 1;
512 new->panner.default_scale = PANNER_DEFAULT_SCALE;
515 if (req->core.width < 1) new->core.width = defwidth;
516 if (req->core.height < 1) new->core.height = defheight;
518 new->panner.shadow_gc = NULL;
519 reset_shadow_gc (new); /* shadowColor */
520 new->panner.slider_gc = NULL;
521 reset_slider_gc (new); /* foreground */
522 new->panner.xor_gc = NULL;
523 reset_xor_gc (new); /* foreground ^ background */
525 rescale (new); /* does a position check */
526 new->panner.shadow_valid = FALSE;
527 new->panner.tmp.doing = FALSE;
528 new->panner.tmp.showing = FALSE;
625 PannerWidget new = (PannerWidget) gnew;
628 if (cur->panner.foreground != new->panner.foreground) {
629 reset_slider_gc (new);
631 reset_xor_gc (new);
633 } else if (cur->panner.line_width != new->panner.line_width ||
634 cur->core.background_pixel != new->core.background_pixel) {
635 reset_xor_gc (new);
638 if (cur->panner.shadow_color != new->panner.shadow_color) {
639 reset_shadow_gc (new);
641 reset_xor_gc (new);
644 if (cur->panner.shadow_thickness != new->panner.shadow_thickness) {
645 move_shadow (new);
648 if (cur->panner.rubber_band != new->panner.rubber_band) {
649 reset_xor_gc (new);
650 if (new->panner.tmp.doing) redisplay = TRUE;
653 if ((cur->panner.stipple_name != new->panner.stipple_name ||
654 cur->panner.shadow_color != new->panner.shadow_color ||
655 cur->core.background_pixel != new->core.background_pixel) &&
657 Pixmap pm = (new->panner.stipple_name ? BACKGROUND_STIPPLE (new)
661 XSetWindowBackgroundPixmap (XtDisplay (new), XtWindow(new), pm);
662 XFreePixmap (XtDisplay (new), pm);
664 XSetWindowBackground (XtDisplay (new), XtWindow(new),
665 new->core.background_pixel);
670 if (new->panner.resize_to_pref &&
671 (cur->panner.canvas_width != new->panner.canvas_width ||
672 cur->panner.canvas_height != new->panner.canvas_height ||
673 cur->panner.resize_to_pref != new->panner.resize_to_pref)) {
674 get_default_size (new, &new->core.width, &new->core.height);
676 } else if (cur->panner.canvas_width != new->panner.canvas_width ||
677 cur->panner.canvas_height != new->panner.canvas_height ||
678 cur->panner.internal_border != new->panner.internal_border) {
679 rescale (new); /* does a scale_knob as well */
682 Boolean loc = (cur->panner.slider_x != new->panner.slider_x ||
683 cur->panner.slider_y != new->panner.slider_y);
684 Boolean siz = (cur->panner.slider_width != new->panner.slider_width ||
685 cur->panner.slider_height != new->panner.slider_height);
687 (cur->panner.allow_off != new->panner.allow_off &&
688 new->panner.allow_off)) {
689 scale_knob (new, loc, siz);