summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1998-12-19 22:27:03 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-12-19 22:27:03 +0000
commit651e2f744f4b6e8a1e4f7f8966eb5e92b8e1c73a (patch)
tree715edd8013b12be32cfee6c6ef78ad1be51cfcea /gdk
parent5225ae610541a6213efb4e59e3aaa2382f2013f3 (diff)
downloadgtk+-651e2f744f4b6e8a1e4f7f8966eb5e92b8e1c73a.tar.gz
Don't add the gthread libs to GLIB_LIBS either, or -lgthread -lpthread
Sat Dec 19 17:28:30 1998 Owen Taylor <otaylor@redhat.com> * configure.in: Don't add the gthread libs to GLIB_LIBS either, or -lgthread -lpthread will get pulled into all applications because of shlib deps. * gtk/gtkmain.h gtk/gtkwidget.c gtk/gtk gdk/gdk: Use GLIB's priority #define. Revise scale of priorities.
Diffstat (limited to 'gdk')
-rw-r--r--gdk/gdkevents.c5
-rw-r--r--gdk/x11/gdkevents-x11.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c
index 50c7bf90a4..40f1578822 100644
--- a/gdk/gdkevents.c
+++ b/gdk/gdkevents.c
@@ -122,7 +122,7 @@ gdk_events_init (void)
GDK_NOTE (MISC,
g_message ("connection number: %d", connection_number));
- g_source_add (-10, TRUE, &event_funcs, NULL, NULL, NULL);
+ g_source_add (G_PRIORITY_DEFAULT, TRUE, &event_funcs, NULL, NULL, NULL);
event_poll_fd.fd = connection_number;
event_poll_fd.events = G_IO_IN;
@@ -767,7 +767,8 @@ gdk_input_add_full (gint source,
cond |= G_IO_ERR|G_IO_HUP|G_IO_NVAL;
channel = g_io_channel_unix_new (source);
- result = g_io_add_watch_full (channel, 0, cond, gdk_io_invoke,
+ result = g_io_add_watch_full (channel, G_PRIORITY_DEFAULT, cond,
+ gdk_io_invoke,
closure, gdk_io_destroy);
g_io_channel_unref (channel);
diff --git a/gdk/x11/gdkevents-x11.c b/gdk/x11/gdkevents-x11.c
index 50c7bf90a4..40f1578822 100644
--- a/gdk/x11/gdkevents-x11.c
+++ b/gdk/x11/gdkevents-x11.c
@@ -122,7 +122,7 @@ gdk_events_init (void)
GDK_NOTE (MISC,
g_message ("connection number: %d", connection_number));
- g_source_add (-10, TRUE, &event_funcs, NULL, NULL, NULL);
+ g_source_add (G_PRIORITY_DEFAULT, TRUE, &event_funcs, NULL, NULL, NULL);
event_poll_fd.fd = connection_number;
event_poll_fd.events = G_IO_IN;
@@ -767,7 +767,8 @@ gdk_input_add_full (gint source,
cond |= G_IO_ERR|G_IO_HUP|G_IO_NVAL;
channel = g_io_channel_unix_new (source);
- result = g_io_add_watch_full (channel, 0, cond, gdk_io_invoke,
+ result = g_io_add_watch_full (channel, G_PRIORITY_DEFAULT, cond,
+ gdk_io_invoke,
closure, gdk_io_destroy);
g_io_channel_unref (channel);