diff options
author | Sven Neumann <sven@gimp.org> | 2002-07-16 16:11:49 +0000 |
---|---|---|
committer | Sven Neumann <neo@src.gnome.org> | 2002-07-16 16:11:49 +0000 |
commit | 2f57f4684ba1945e7bdf87c8ecea4a6e926cf223 (patch) | |
tree | d194660e0860a944b04c30223208b530759235ce /gdk | |
parent | f07ab95c5faeea864237bb5e8738634435cb38c8 (diff) | |
download | gdk-pixbuf-2f57f4684ba1945e7bdf87c8ecea4a6e926cf223.tar.gz |
gdk/gdk.c gdk/gdkinternals.h gdk/win32/gdkmain-win32.c pass argc and argv
2002-07-16 Sven Neumann <sven@gimp.org>
* 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).
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/gdk.c | 2 | ||||
-rw-r--r-- | gdk/gdkinternals.h | 5 | ||||
-rw-r--r-- | gdk/win32/gdkmain-win32.c | 3 | ||||
-rw-r--r-- | gdk/x11/gdkmain-x11.c | 3 |
4 files changed, 8 insertions, 5 deletions
@@ -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 (); |