diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-06-20 23:29:19 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-06-20 23:29:19 +0000 |
commit | 5830bf89b5bb3eb48fa84ed690a726be3a82e129 (patch) | |
tree | ffccd98b302bb7b4e18bc2acca6500d5f4cfe648 /gtk/gtkmain.h | |
parent | 4251a51edc15c41799d87d3e26761c2064507df6 (diff) | |
download | gtk+-5830bf89b5bb3eb48fa84ed690a726be3a82e129.tar.gz |
Add a singleton object that we can use to get notification when displays
Thu Jun 20 16:49:00 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdkdisplaymanager.[ch] gdk/gdk.[ch] gdk/gdkdisplay.c
gdk/gdkinternals.h gdk/x11/gdkdisplay-x11.c
gdk/win32/gdkdisplay-win32.c: Add a singleton object that
we can use to get notification when displays
appear / disappear or the default display changes.
gdk_set_default_display() => gdk_display_manager_set_default_display()
gdk_list_displays() => gdk_display_manager_list_displays().
(#85696)
* gdk/Makefile.am gdk/gdkmarshalers.list: Add marshaler
generation.
* gdk/gdkintl.h: Add this.
* gtk/gtkmain.c: Add gtk_parse_args() that initializes
GTK+ without opening a display.
* gtk/gtkmain.c: Set things up so if a module
exports gtk_module_init() and gtk_module_display_init(),
then we treat it as multihead aware, otherwise,
we only initialize it after the default display is set.
Diffstat (limited to 'gtk/gtkmain.h')
-rw-r--r-- | gtk/gtkmain.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gtk/gtkmain.h b/gtk/gtkmain.h index 7ca018e586..7837bfc29c 100644 --- a/gtk/gtkmain.h +++ b/gtk/gtkmain.h @@ -54,11 +54,12 @@ extern "C" { #endif /* GTK_DISABLE_DEPRECATED */ -typedef void (*GtkModuleInitFunc) (gint *argc, - gchar ***argv); -typedef gint (*GtkKeySnoopFunc) (GtkWidget *grab_widget, - GdkEventKey *event, - gpointer func_data); +typedef void (*GtkModuleInitFunc) (gint *argc, + gchar ***argv); +typedef void (*GtkModuleDisplayInitFunc) (GdkDisplay *display); +typedef gint (*GtkKeySnoopFunc) (GtkWidget *grab_widget, + GdkEventKey *event, + gpointer func_data); /* Gtk version. */ |