mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-13 04:10:13 +00:00
autogenerate gtk.def, cleanup
2004-08-09 Hans Breuer <hans@breuer.org> * gtk/makefile.msc.in : autogenerate gtk.def, cleanup * gdk/win32/gdkwindow-win32.c gdk/win32/gdkevents-win32.c : removed long time unused ifdef/ed code (WITHOUT_WM_CREATE), removed duplicated call to gdk_window_set_cursor()
This commit is contained in:
parent
58e81db99f
commit
2c3388b72f
@ -1,3 +1,11 @@
|
|||||||
|
2004-08-09 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
* gtk/makefile.msc.in : autogenerate gtk.def, cleanup
|
||||||
|
|
||||||
|
* gdk/win32/gdkwindow-win32.c gdk/win32/gdkevents-win32.c :
|
||||||
|
removed long time unused ifdef/ed code (WITHOUT_WM_CREATE),
|
||||||
|
removed duplicated call to gdk_window_set_cursor()
|
||||||
|
|
||||||
Mon Aug 9 15:41:17 2004 Matthias Clasen <maclas@gmx.de>
|
Mon Aug 9 15:41:17 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
Add hidden aliases for exported symbols which are
|
Add hidden aliases for exported symbols which are
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2004-08-09 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
* gtk/makefile.msc.in : autogenerate gtk.def, cleanup
|
||||||
|
|
||||||
|
* gdk/win32/gdkwindow-win32.c gdk/win32/gdkevents-win32.c :
|
||||||
|
removed long time unused ifdef/ed code (WITHOUT_WM_CREATE),
|
||||||
|
removed duplicated call to gdk_window_set_cursor()
|
||||||
|
|
||||||
Mon Aug 9 15:41:17 2004 Matthias Clasen <maclas@gmx.de>
|
Mon Aug 9 15:41:17 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
Add hidden aliases for exported symbols which are
|
Add hidden aliases for exported symbols which are
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2004-08-09 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
* gtk/makefile.msc.in : autogenerate gtk.def, cleanup
|
||||||
|
|
||||||
|
* gdk/win32/gdkwindow-win32.c gdk/win32/gdkevents-win32.c :
|
||||||
|
removed long time unused ifdef/ed code (WITHOUT_WM_CREATE),
|
||||||
|
removed duplicated call to gdk_window_set_cursor()
|
||||||
|
|
||||||
Mon Aug 9 15:41:17 2004 Matthias Clasen <maclas@gmx.de>
|
Mon Aug 9 15:41:17 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
Add hidden aliases for exported symbols which are
|
Add hidden aliases for exported symbols which are
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2004-08-09 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
* gtk/makefile.msc.in : autogenerate gtk.def, cleanup
|
||||||
|
|
||||||
|
* gdk/win32/gdkwindow-win32.c gdk/win32/gdkevents-win32.c :
|
||||||
|
removed long time unused ifdef/ed code (WITHOUT_WM_CREATE),
|
||||||
|
removed duplicated call to gdk_window_set_cursor()
|
||||||
|
|
||||||
Mon Aug 9 15:41:17 2004 Matthias Clasen <maclas@gmx.de>
|
Mon Aug 9 15:41:17 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
Add hidden aliases for exported symbols which are
|
Add hidden aliases for exported symbols which are
|
||||||
|
@ -2137,7 +2137,6 @@ gdk_event_translate (GdkDisplay *display,
|
|||||||
PostMessage (msg->hwnd, msg->message,
|
PostMessage (msg->hwnd, msg->message,
|
||||||
msg->wParam, msg->lParam);
|
msg->wParam, msg->lParam);
|
||||||
}
|
}
|
||||||
#ifndef WITHOUT_WM_CREATE
|
|
||||||
else if (msg->message == WM_CREATE)
|
else if (msg->message == WM_CREATE)
|
||||||
{
|
{
|
||||||
window = (UNALIGNED GdkWindow*) (((LPCREATESTRUCT) msg->lParam)->lpCreateParams);
|
window = (UNALIGNED GdkWindow*) (((LPCREATESTRUCT) msg->lParam)->lpCreateParams);
|
||||||
@ -2147,7 +2146,6 @@ gdk_event_translate (GdkDisplay *display,
|
|||||||
{
|
{
|
||||||
GDK_NOTE (EVENTS, g_print (" (no GdkWindow)"));
|
GDK_NOTE (EVENTS, g_print (" (no GdkWindow)"));
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -594,9 +594,6 @@ gdk_window_new (GdkWindow *parent,
|
|||||||
GDK_NOTE (MISC, g_print ("...GDK_INPUT_ONLY, system colormap"));
|
GDK_NOTE (MISC, g_print ("...GDK_INPUT_ONLY, system colormap"));
|
||||||
}
|
}
|
||||||
|
|
||||||
gdk_window_set_cursor (window, ((attributes_mask & GDK_WA_CURSOR) ?
|
|
||||||
(attributes->cursor) :
|
|
||||||
NULL));
|
|
||||||
switch (private->window_type)
|
switch (private->window_type)
|
||||||
{
|
{
|
||||||
case GDK_WINDOW_TOPLEVEL:
|
case GDK_WINDOW_TOPLEVEL:
|
||||||
@ -680,21 +677,6 @@ gdk_window_new (GdkWindow *parent,
|
|||||||
|
|
||||||
mbtitle = g_locale_from_utf8 (title, -1, NULL, NULL, NULL);
|
mbtitle = g_locale_from_utf8 (title, -1, NULL, NULL, NULL);
|
||||||
|
|
||||||
#ifdef WITHOUT_WM_CREATE
|
|
||||||
draw_impl->handle =
|
|
||||||
CreateWindowEx (dwExStyle,
|
|
||||||
MAKEINTRESOURCE(klass),
|
|
||||||
mbtitle,
|
|
||||||
dwStyle,
|
|
||||||
((attributes_mask & GDK_WA_X) ?
|
|
||||||
impl->position_info.x - offset_x : CW_USEDEFAULT),
|
|
||||||
impl->position_info.y - offset_y,
|
|
||||||
window_width, window_height,
|
|
||||||
hparent,
|
|
||||||
NULL,
|
|
||||||
_gdk_app_hmodule,
|
|
||||||
NULL);
|
|
||||||
#else
|
|
||||||
{
|
{
|
||||||
HWND hwndNew =
|
HWND hwndNew =
|
||||||
CreateWindowEx (dwExStyle,
|
CreateWindowEx (dwExStyle,
|
||||||
@ -733,7 +715,6 @@ gdk_window_new (GdkWindow *parent,
|
|||||||
}
|
}
|
||||||
g_object_ref (window);
|
g_object_ref (window);
|
||||||
gdk_win32_handle_table_insert (&GDK_WINDOW_HWND (window), window);
|
gdk_win32_handle_table_insert (&GDK_WINDOW_HWND (window), window);
|
||||||
#endif
|
|
||||||
|
|
||||||
GDK_NOTE (MISC, g_print ("... \"%s\" %dx%d@+%d+%d %p = %p\n",
|
GDK_NOTE (MISC, g_print ("... \"%s\" %dx%d@+%d+%d %p = %p\n",
|
||||||
mbtitle,
|
mbtitle,
|
||||||
@ -753,11 +734,6 @@ gdk_window_new (GdkWindow *parent,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WITHOUT_WM_CREATE
|
|
||||||
g_object_ref (window);
|
|
||||||
gdk_win32_handle_table_insert (&GDK_WINDOW_HWND (window), window);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
gdk_window_set_cursor (window, ((attributes_mask & GDK_WA_CURSOR) ?
|
gdk_window_set_cursor (window, ((attributes_mask & GDK_WA_CURSOR) ?
|
||||||
(attributes->cursor) :
|
(attributes->cursor) :
|
||||||
NULL));
|
NULL));
|
||||||
|
@ -55,7 +55,7 @@ all : \
|
|||||||
|
|
||||||
gtk_OBJECTS = \
|
gtk_OBJECTS = \
|
||||||
fnmatch.obj \
|
fnmatch.obj \
|
||||||
gtkabout.obj \
|
gtkaboutdialog.obj \
|
||||||
gtkaccelgroup.obj \
|
gtkaccelgroup.obj \
|
||||||
gtkaccellabel.obj \
|
gtkaccellabel.obj \
|
||||||
gtkaccelmap.obj \
|
gtkaccelmap.obj \
|
||||||
@ -80,7 +80,6 @@ gtk_OBJECTS = \
|
|||||||
gtkcellrenderertoggle.obj \
|
gtkcellrenderertoggle.obj \
|
||||||
gtkcellrendererpixbuf.obj \
|
gtkcellrendererpixbuf.obj \
|
||||||
gtkcellrendererprogress.obj \
|
gtkcellrendererprogress.obj \
|
||||||
gtkcellrendererseptext.obj \
|
|
||||||
gtkcellview.obj \
|
gtkcellview.obj \
|
||||||
gtkcheckbutton.obj \
|
gtkcheckbutton.obj \
|
||||||
gtkcheckmenuitem.obj \
|
gtkcheckmenuitem.obj \
|
||||||
@ -248,7 +247,7 @@ gtk_OBJECTS = \
|
|||||||
# Source headers which are non-autogenerated headers
|
# Source headers which are non-autogenerated headers
|
||||||
gtk_public_h_sources = \
|
gtk_public_h_sources = \
|
||||||
gtk.h \
|
gtk.h \
|
||||||
gtkabout.h \
|
gtkaboutdialog.h \
|
||||||
gtkaccelgroup.h \
|
gtkaccelgroup.h \
|
||||||
gtkaccellabel.h \
|
gtkaccellabel.h \
|
||||||
gtkaccelmap.h \
|
gtkaccelmap.h \
|
||||||
@ -429,8 +428,10 @@ gtk_extra_sources = \
|
|||||||
..\config.h : ..\config.h.win32
|
..\config.h : ..\config.h.win32
|
||||||
copy ..\config.h.win32 ..\config.h
|
copy ..\config.h.win32 ..\config.h
|
||||||
|
|
||||||
# Removed: gtk.defs
|
GENERATED = \
|
||||||
GENERATED = gtktypebuiltins.h gtktypebuiltins.c gtkmarshal.h gtkmarshal.c gtkmarshalers.h gtkmarshalers.c
|
gtktypebuiltins.h gtktypebuiltins.c \
|
||||||
|
gtkmarshal.h gtkmarshal.c gtkmarshalers.h gtkmarshalers.c \
|
||||||
|
gtk.def gtkalias.h
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generated source files:
|
# Generated source files:
|
||||||
@ -438,15 +439,12 @@ GENERATED = gtktypebuiltins.h gtktypebuiltins.c gtkmarshal.h gtkmarshal.c gtkmar
|
|||||||
generated : $(GENERATED)
|
generated : $(GENERATED)
|
||||||
$(TOUCH) generated
|
$(TOUCH) generated
|
||||||
|
|
||||||
gtk.defs : $(gtk_public_h_sources) makefile.msc
|
gtk.def: gtk.symbols
|
||||||
$(PERL) $(GLIB)\gobject\glib-mkenums \
|
echo EXPORTS > gtk.def
|
||||||
--comments ";; @comment@" \
|
cl /EP -DINCLUDE_VARIABLES -DG_OS_WIN32 gtk.symbols >> gtk.def
|
||||||
--fprod "; enumerations from \"@filename@\"\n " \
|
|
||||||
--vhead "(define-@type@ @EnumName@" \
|
gtkalias.h: gtk.symbols
|
||||||
--vprod " (@valuenick@ @VALUENAME@)" \
|
cl /EP -DG_OS_WIN32 -DGTK_WINDOWING_WIN32 -DINCLUDE_INTERNAL_SYMBOLS gtk.symbols | $(PERL) makegtkalias.pl > gtkalias.h
|
||||||
--vtail ")" \
|
|
||||||
$(gtk_public_h_sources) > xgen-gdef
|
|
||||||
copy xgen-gdef gtk.defs
|
|
||||||
|
|
||||||
# generate type identifier header (GTK_TYPE_WIDGET_FLAGS)
|
# generate type identifier header (GTK_TYPE_WIDGET_FLAGS)
|
||||||
# use 'echo' to work around 'command line too long'
|
# use 'echo' to work around 'command line too long'
|
||||||
@ -521,9 +519,3 @@ $(EXAMPLE).obj : ..\examples\$(EXAMPLE)\$(EXAMPLE).c
|
|||||||
$(EXAMPLE).exe : $(EXAMPLE).obj
|
$(EXAMPLE).exe : $(EXAMPLE).obj
|
||||||
$(CC) $(CFLAGS) $(EXAMPLE).obj $(GTK_LIBS) $(GDK_LIBS) $(GLIB_LIBS) $(LDFLAGS)
|
$(CC) $(CFLAGS) $(EXAMPLE).obj $(GTK_LIBS) $(GDK_LIBS) $(GLIB_LIBS) $(LDFLAGS)
|
||||||
|
|
||||||
makefile.msc: makefile.msc.in
|
|
||||||
sed -e s,@GTK[_]MAJOR_VERSION@,@GTK_MAJOR_VERSION@, \
|
|
||||||
-e s,@GTK[_]MINOR_VERSION@,@GTK_MINOR_VERSION@, \
|
|
||||||
-e 's,@GTK[_]VERSION@,@GTK_VERSION@,' \
|
|
||||||
-e 's,@GDK_PIXBUF[_]MAJOR@,@GDK_PIXBUF_MAJOR@,' \
|
|
||||||
-e 's,@GDK_PIXBUF[_]MINOR@,@GDK_PIXBUF_MINOR@,' <makefile.msc.in >$@
|
|
||||||
|
Loading…
Reference in New Issue
Block a user