comparison src/glyphs-x.c @ 402:5a2589c672dc r21-2-31

Import from CVS: tag r21-2-31
author cvs
date Mon, 13 Aug 2007 11:14:58 +0200
parents a86b2b5e0111
children 2f8bb876ab1d
comparison
equal deleted inserted replaced
401:e0a2a2be14bf 402:5a2589c672dc
2492 wid = lw_create_widget (type, wv->name, id, wv, IMAGE_INSTANCE_X_CLIPWIDGET (ii), 2492 wid = lw_create_widget (type, wv->name, id, wv, IMAGE_INSTANCE_X_CLIPWIDGET (ii),
2493 False, 0, popup_selection_callback, 0); 2493 False, 0, popup_selection_callback, 0);
2494 2494
2495 IMAGE_INSTANCE_SUBWINDOW_ID (ii) = (void*)wid; 2495 IMAGE_INSTANCE_SUBWINDOW_ID (ii) = (void*)wid;
2496 IMAGE_INSTANCE_X_WIDGET_LWID (ii) = id; 2496 IMAGE_INSTANCE_X_WIDGET_LWID (ii) = id;
2497 2497 #if 0
2498 /* Resize the widget here so that the values do not get copied by 2498 /* Resize the widget here so that the values do not get copied by
2499 lwlib. */ 2499 lwlib. */
2500 ac = 0; 2500 ac = 0;
2501 XtSetArg (al [ac], XtNwidth, 2501 XtSetArg (al [ac], XtNwidth,
2502 (Dimension)IMAGE_INSTANCE_SUBWINDOW_WIDTH (ii)); ac++; 2502 (Dimension)IMAGE_INSTANCE_SUBWINDOW_WIDTH (ii)); ac++;
2503 XtSetArg (al [ac], XtNheight, 2503 XtSetArg (al [ac], XtNheight,
2504 (Dimension)IMAGE_INSTANCE_SUBWINDOW_HEIGHT (ii)); ac++; 2504 (Dimension)IMAGE_INSTANCE_SUBWINDOW_HEIGHT (ii)); ac++;
2505 XtSetValues (IMAGE_INSTANCE_X_WIDGET_ID (ii), al, ac); 2505 XtSetValues (IMAGE_INSTANCE_X_WIDGET_ID (ii), al, ac);
2506 #endif
2506 /* because the EmacsManager is the widgets parent we have to 2507 /* because the EmacsManager is the widgets parent we have to
2507 offset the redisplay of the widget by the amount the text 2508 offset the redisplay of the widget by the amount the text
2508 widget is inside the manager. */ 2509 widget is inside the manager. */
2509 ac = 0; 2510 ac = 0;
2510 XtSetArg (al [ac], XtNx, &IMAGE_INSTANCE_X_WIDGET_XOFFSET (ii)); ac++; 2511 XtSetArg (al [ac], XtNx, &IMAGE_INSTANCE_X_WIDGET_XOFFSET (ii)); ac++;