summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorSven Neumann <sven@gimp.org>2002-07-16 16:11:49 +0000
committerSven Neumann <neo@src.gnome.org>2002-07-16 16:11:49 +0000
commit2f57f4684ba1945e7bdf87c8ecea4a6e926cf223 (patch)
treed194660e0860a944b04c30223208b530759235ce /gdk
parentf07ab95c5faeea864237bb5e8738634435cb38c8 (diff)
downloadgdk-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.c2
-rw-r--r--gdk/gdkinternals.h5
-rw-r--r--gdk/win32/gdkmain-win32.c3
-rw-r--r--gdk/x11/gdkmain-x11.c3
4 files changed, 8 insertions, 5 deletions
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 ();