Dont hardcode button layout in XfeCreateLoadedToolBar. Update Makefile for

XfeWidgets.mk.
This commit is contained in:
ramiro 1998-04-21 12:39:49 +00:00
Родитель e8cb38425e
Коммит e8e4c884ed
2 изменённых файлов: 14 добавлений и 19 удалений

Просмотреть файл

@ -31,15 +31,6 @@ MODULE = XfeTest/Xfe
LIBRARY_NAME = XfeTest
ifdef XFE_WIDGETS_BUILD_DEMO
XFE_EXTRA_DEFINES += -DXFE_WIDGETS_BUILD_DEMO
endif
ifdef XFE_WIDGETS_BUILD_UNUSED
XFE_EXTRA_DEFINES += -DXFE_WIDGETS_BUILD_UNUSED
endif
CSRCS = \
TestAnim.c \
TestApp.c \
@ -62,5 +53,6 @@ EXPORTS = \
include $(DEPTH)/config/rules.mk
include $(DEPTH)/cmd/xfe/XfeWidgets/XfeWidgets.mk
INCLUDES += -I../icons
DEFINES += $(XFE_EXTRA_DEFINES)

Просмотреть файл

@ -113,14 +113,17 @@ XfeLoadToolBar(Widget tool_bar,
XtAddCallback(tool_items[i],XmNactivateCallback,activate_cb,NULL);
}
if ((i % sep_offset) == 0)
{
Widget sep = XmCreateSeparator(tool_bar,
(orientation == XmVERTICAL) ?
"vsep" : "hsep",
NULL,0);
XtManageChild(sep);
if (sep_count > 0)
{
if ((i % sep_offset) == 0)
{
Widget sep = XmCreateSeparator(tool_bar,
(orientation == XmVERTICAL) ?
"vsep" : "hsep",
NULL,0);
XtManageChild(sep);
}
}
}
@ -154,7 +157,7 @@ XfeCreateLoadedToolBar(Widget pw,
xfeToolBarWidgetClass,
pw,
XmNbackground, XfeBackground(pw),
XmNbuttonLayout, XmBUTTON_LABEL_ON_BOTTOM,
/* XmNbuttonLayout, XmBUTTON_LABEL_ON_BOTTOM, */
NULL);
if (tool_count > 0)