From 2f57f4684ba1945e7bdf87c8ecea4a6e926cf223 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Tue, 16 Jul 2002 16:11:49 +0000 Subject: gdk/gdk.c gdk/gdkinternals.h gdk/win32/gdkmain-win32.c pass argc and argv 2002-07-16 Sven Neumann * gdk/gdk.c * gdk/gdkinternals.h * gdk/win32/gdkmain-win32.c * gdk/x11/gdkmain-x11.c: pass argc and argv to the GDK backend in _gdk_windowing_init() so that the backend has a chance to process the command-line arguments (GTK+-DirectFB needs this). --- gdk/gdk.c | 2 +- gdk/gdkinternals.h | 5 +++-- gdk/win32/gdkmain-win32.c | 3 ++- gdk/x11/gdkmain-x11.c | 3 ++- 4 files changed, 8 insertions(+), 5 deletions(-) (limited to 'gdk') diff --git a/gdk/gdk.c b/gdk/gdk.c index 873184042..ee77ef78b 100644 --- a/gdk/gdk.c +++ b/gdk/gdk.c @@ -345,7 +345,7 @@ gdk_parse_args (int *argc, /* Do any setup particular to the windowing system */ - _gdk_windowing_init (); + _gdk_windowing_init (argc, argv); } /** diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h index a804882c5..c31dc1615 100644 --- a/gdk/gdkinternals.h +++ b/gdk/gdkinternals.h @@ -231,8 +231,9 @@ void _gdk_colormap_real_destroy (GdkColormap *colormap); void _gdk_cursor_destroy (GdkCursor *cursor); extern GdkArgDesc _gdk_windowing_args[]; -void _gdk_windowing_init (void); -void _gdk_windowing_set_default_display (GdkDisplay *display); +void _gdk_windowing_init (gint *argc, + gchar ***argv); +void _gdk_windowing_set_default_display (GdkDisplay *display); void _gdk_windowing_window_get_offsets (GdkWindow *window, gint *x_offset, diff --git a/gdk/win32/gdkmain-win32.c b/gdk/win32/gdkmain-win32.c index eb09f05b5..a762cee78 100644 --- a/gdk/win32/gdkmain-win32.c +++ b/gdk/win32/gdkmain-win32.c @@ -67,7 +67,8 @@ DllMain(HINSTANCE hinstDLL, } void -_gdk_windowing_init (void) +_gdk_windowing_init (gint *argc, + gchar ***argv) { gchar buf[10]; diff --git a/gdk/x11/gdkmain-x11.c b/gdk/x11/gdkmain-x11.c index 6bf483b6b..36b1d2be2 100644 --- a/gdk/x11/gdkmain-x11.c +++ b/gdk/x11/gdkmain-x11.c @@ -96,7 +96,8 @@ GdkArgDesc _gdk_windowing_args[] = { }; void -_gdk_windowing_init (void) +_gdk_windowing_init (gint *argc, + gchar ***argv) { _gdk_x11_initialize_locale (); -- cgit v1.2.1