summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog14
-rw-r--r--ChangeLog.pre-2-014
-rw-r--r--ChangeLog.pre-2-1014
-rw-r--r--ChangeLog.pre-2-214
-rw-r--r--ChangeLog.pre-2-414
-rw-r--r--ChangeLog.pre-2-614
-rw-r--r--ChangeLog.pre-2-814
-rw-r--r--gdk/gdkevents.c2
-rw-r--r--gdk/x11/gdkevents-x11.c2
-rw-r--r--gtk/gtkfilesel.c1
-rw-r--r--gtk/gtkmain.c32
11 files changed, 118 insertions, 17 deletions
diff --git a/ChangeLog b/ChangeLog
index 8a530ea4bf..3648b32eb6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+Fri Dec 18 01:32:59 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkmain.c (gtk_main): added gdk_flush() after g_main_run(), so we
+ get the original behaviour back, i.e. the event queue needs to be flushed
+ after a main loop has been quitted.
+ (gtk_main): add/remove the current main loop to/from the main loop
+ before/after init/quit functions have been exected to preserve the
+ original gtk_main_quit() behaviour.
+
+Thu Dec 17 23:48:29 1998 Tim Janik <timj@gtk.org>
+
+ * gdk/gdkevents.c (gdk_events_init): changed argument order in call
+ to g_main_add_poll() to match recent glib changes.
+
Thu Dec 17 20:33:28 1998 Owen Taylor <otaylor@redhat.com>
* gtk-config.in: Add @INTLLIBS@.
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index 8a530ea4bf..3648b32eb6 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -1,3 +1,17 @@
+Fri Dec 18 01:32:59 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkmain.c (gtk_main): added gdk_flush() after g_main_run(), so we
+ get the original behaviour back, i.e. the event queue needs to be flushed
+ after a main loop has been quitted.
+ (gtk_main): add/remove the current main loop to/from the main loop
+ before/after init/quit functions have been exected to preserve the
+ original gtk_main_quit() behaviour.
+
+Thu Dec 17 23:48:29 1998 Tim Janik <timj@gtk.org>
+
+ * gdk/gdkevents.c (gdk_events_init): changed argument order in call
+ to g_main_add_poll() to match recent glib changes.
+
Thu Dec 17 20:33:28 1998 Owen Taylor <otaylor@redhat.com>
* gtk-config.in: Add @INTLLIBS@.
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 8a530ea4bf..3648b32eb6 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,17 @@
+Fri Dec 18 01:32:59 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkmain.c (gtk_main): added gdk_flush() after g_main_run(), so we
+ get the original behaviour back, i.e. the event queue needs to be flushed
+ after a main loop has been quitted.
+ (gtk_main): add/remove the current main loop to/from the main loop
+ before/after init/quit functions have been exected to preserve the
+ original gtk_main_quit() behaviour.
+
+Thu Dec 17 23:48:29 1998 Tim Janik <timj@gtk.org>
+
+ * gdk/gdkevents.c (gdk_events_init): changed argument order in call
+ to g_main_add_poll() to match recent glib changes.
+
Thu Dec 17 20:33:28 1998 Owen Taylor <otaylor@redhat.com>
* gtk-config.in: Add @INTLLIBS@.
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 8a530ea4bf..3648b32eb6 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -1,3 +1,17 @@
+Fri Dec 18 01:32:59 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkmain.c (gtk_main): added gdk_flush() after g_main_run(), so we
+ get the original behaviour back, i.e. the event queue needs to be flushed
+ after a main loop has been quitted.
+ (gtk_main): add/remove the current main loop to/from the main loop
+ before/after init/quit functions have been exected to preserve the
+ original gtk_main_quit() behaviour.
+
+Thu Dec 17 23:48:29 1998 Tim Janik <timj@gtk.org>
+
+ * gdk/gdkevents.c (gdk_events_init): changed argument order in call
+ to g_main_add_poll() to match recent glib changes.
+
Thu Dec 17 20:33:28 1998 Owen Taylor <otaylor@redhat.com>
* gtk-config.in: Add @INTLLIBS@.
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 8a530ea4bf..3648b32eb6 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -1,3 +1,17 @@
+Fri Dec 18 01:32:59 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkmain.c (gtk_main): added gdk_flush() after g_main_run(), so we
+ get the original behaviour back, i.e. the event queue needs to be flushed
+ after a main loop has been quitted.
+ (gtk_main): add/remove the current main loop to/from the main loop
+ before/after init/quit functions have been exected to preserve the
+ original gtk_main_quit() behaviour.
+
+Thu Dec 17 23:48:29 1998 Tim Janik <timj@gtk.org>
+
+ * gdk/gdkevents.c (gdk_events_init): changed argument order in call
+ to g_main_add_poll() to match recent glib changes.
+
Thu Dec 17 20:33:28 1998 Owen Taylor <otaylor@redhat.com>
* gtk-config.in: Add @INTLLIBS@.
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 8a530ea4bf..3648b32eb6 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,3 +1,17 @@
+Fri Dec 18 01:32:59 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkmain.c (gtk_main): added gdk_flush() after g_main_run(), so we
+ get the original behaviour back, i.e. the event queue needs to be flushed
+ after a main loop has been quitted.
+ (gtk_main): add/remove the current main loop to/from the main loop
+ before/after init/quit functions have been exected to preserve the
+ original gtk_main_quit() behaviour.
+
+Thu Dec 17 23:48:29 1998 Tim Janik <timj@gtk.org>
+
+ * gdk/gdkevents.c (gdk_events_init): changed argument order in call
+ to g_main_add_poll() to match recent glib changes.
+
Thu Dec 17 20:33:28 1998 Owen Taylor <otaylor@redhat.com>
* gtk-config.in: Add @INTLLIBS@.
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 8a530ea4bf..3648b32eb6 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,17 @@
+Fri Dec 18 01:32:59 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkmain.c (gtk_main): added gdk_flush() after g_main_run(), so we
+ get the original behaviour back, i.e. the event queue needs to be flushed
+ after a main loop has been quitted.
+ (gtk_main): add/remove the current main loop to/from the main loop
+ before/after init/quit functions have been exected to preserve the
+ original gtk_main_quit() behaviour.
+
+Thu Dec 17 23:48:29 1998 Tim Janik <timj@gtk.org>
+
+ * gdk/gdkevents.c (gdk_events_init): changed argument order in call
+ to g_main_add_poll() to match recent glib changes.
+
Thu Dec 17 20:33:28 1998 Owen Taylor <otaylor@redhat.com>
* gtk-config.in: Add @INTLLIBS@.
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c
index f473692a4e..f96a680b6a 100644
--- a/gdk/gdkevents.c
+++ b/gdk/gdkevents.c
@@ -127,7 +127,7 @@ gdk_events_init (void)
event_poll_fd.fd = connection_number;
event_poll_fd.events = G_IO_IN;
- g_main_add_poll (-10, &event_poll_fd);
+ g_main_add_poll (&event_poll_fd, -10);
/* This is really crappy. We have to look into the display structure
* to find the base resource id. This is only needed for recording
diff --git a/gdk/x11/gdkevents-x11.c b/gdk/x11/gdkevents-x11.c
index f473692a4e..f96a680b6a 100644
--- a/gdk/x11/gdkevents-x11.c
+++ b/gdk/x11/gdkevents-x11.c
@@ -127,7 +127,7 @@ gdk_events_init (void)
event_poll_fd.fd = connection_number;
event_poll_fd.events = G_IO_IN;
- g_main_add_poll (-10, &event_poll_fd);
+ g_main_add_poll (&event_poll_fd, -10);
/* This is really crappy. We have to look into the display structure
* to find the base resource id. This is only needed for recording
diff --git a/gtk/gtkfilesel.c b/gtk/gtkfilesel.c
index 0386dbbc47..a60db8ea5c 100644
--- a/gtk/gtkfilesel.c
+++ b/gtk/gtkfilesel.c
@@ -408,7 +408,6 @@ gtk_file_selection_init (GtkFileSelection *filesel)
gtk_widget_show (list_hbox);
/* The directories clist */
-
dir_title[0] = _("Directories");
dir_title[1] = NULL;
filesel->dir_list = gtk_clist_new_with_titles (1, (gchar**) dir_title);
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index ff595d51f0..55b6d2f0ff 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -432,12 +432,13 @@ gtk_main (void)
GList *tmp_list;
GList *functions;
GtkInitFunction *init;
-
GMainLoop *loop;
- GSList *tmp_node;
gtk_main_loop_level++;
+ loop = g_main_new (TRUE);
+ main_loops = g_slist_prepend (main_loops, loop);
+
tmp_list = functions = init_functions;
init_functions = NULL;
@@ -450,19 +451,14 @@ gtk_main (void)
g_free (init);
}
g_list_free (functions);
-
- loop = g_main_new ();
- main_loops = g_slist_prepend (main_loops, loop);
-
- GDK_THREADS_LEAVE ();
- g_main_run (loop);
- GDK_THREADS_ENTER ();
-
- g_main_destroy (loop);
- tmp_node = main_loops;
- main_loops = g_slist_remove_link (main_loops, main_loops);
- g_slist_free_1 (tmp_node);
+ if (g_main_is_running (main_loops->data))
+ {
+ GDK_THREADS_LEAVE ();
+ g_main_run (loop);
+ GDK_THREADS_ENTER ();
+ gdk_flush ();
+ }
if (quit_functions)
{
@@ -496,8 +492,14 @@ gtk_main (void)
work->next = quit_functions;
quit_functions = work;
}
+
+ gdk_flush ();
}
+ main_loops = g_slist_remove (main_loops, loop);
+
+ g_main_destroy (loop);
+
gtk_main_loop_level--;
}
@@ -510,6 +512,8 @@ gtk_main_level (void)
void
gtk_main_quit (void)
{
+ g_return_if_fail (main_loops != NULL);
+
g_main_quit (main_loops->data);
}