Make files & tree expanders

This commit is contained in:
Raymond Penners 2003-08-20 00:07:23 +00:00
parent 55b0689a1d
commit badb53eb1e
3 changed files with 80 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2003-08-20 Raymond Penners <raymond@dotsphinx.com>
* */Makefile.msc: Provided MS-VC++ make files.
* src/xp_theme.c: The open/close tree expander symbols were
accidentally switched. Fixed.
2003-08-11 Raymond Penners <raymond@dotsphinx.com>
* src/wimp_style.c: The menu background color now follows XP's

View File

@ -0,0 +1,71 @@
# Makefile.msc -- Makefile for MS-VC++ (-*- makefile -*-)
#
# Copyright (C) 2003 Raymond Penners <raymond@dotsphinx.com>
#
# $Id$
!INCLUDE ../Makefile.msc.config
##
# Target
TARGET=libwimp.dll
OBJS = \
wimp_style.obj \
wimp_theme_main.obj \
wimp_rc_style.obj \
xp_theme.obj
##
# GTK
#
GTK_CFLAGS=\
-I$(GTK_DIR)/include/gtk-2.0 \
-I$(GTK_DIR)/lib/gtk-2.0/include \
-I$(GTK_DIR)/include/atk-1.0 \
-I$(GTK_DIR)/include/pango-1.0 \
-I$(GTK_DIR)/include/glib-2.0 \
-I$(GTK_DIR)/lib/glib-2.0/include
GTK_LDFLAGS=/libpath:$(GTK_DIR)/lib
GTK_LIBS= \
gtk-win32-2.0.lib \
gdk-win32-2.0.lib \
atk-1.0.lib \
gdk_pixbuf-2.0.lib \
pangowin32-1.0.lib \
pango-1.0.lib \
gobject-2.0.lib \
gmodule-2.0.lib \
glib-2.0.lib \
intl.lib \
iconv.lib
##
# WIN32
#
WIN32_LIBS = \
gdi32.lib \
user32.lib
WIN32_CFLAGS=-I"$(SDK_DIR)"
WIN32_LDFLAGS=/DLL /SUBSYSTEM:WINDOWS
##
# Target
#
LIBS=$(GTK_LIBS) $(WIN32_LIBS)
CFLAGS=$(WIN32_CFLAGS) $(GTK_CFLAGS)
LDFLAGS= $(WIN32_LDFLAGS) $(GTK_LDFLAGS)
all: $(TARGET)
$(TARGET): $(OBJS)
link $(LDFLAGS) $(LIBS) /OUT:$@ $(OBJS)
install: $(TARGET)
copy libwimp.dll "$(INSTALL_DIR)"
clean:
del *.obj *.dll *.exp *.lib

View File

@ -448,11 +448,11 @@ xp_theme_map_gtk_state(XpThemeElement element, GtkStateType state)
break;
case XP_THEME_ELEMENT_TREEVIEW_EXPANDER_OPENED:
ret = GLPS_CLOSED;
ret = GLPS_OPENED;
break;
case XP_THEME_ELEMENT_TREEVIEW_EXPANDER_CLOSED:
ret = GLPS_OPENED;
ret = GLPS_CLOSED;
break;
case XP_THEME_ELEMENT_PROGRESS_BAR_H: