+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.
+
Sat Dec 19 03:44:29 PST 1998 Manish Singh <yosh@gimp.org>
* gtk/gtkmain.c: always run a g_main_iteration, even if
+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.
+
Sat Dec 19 03:44:29 PST 1998 Manish Singh <yosh@gimp.org>
* gtk/gtkmain.c: always run a g_main_iteration, even if
+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.
+
Sat Dec 19 03:44:29 PST 1998 Manish Singh <yosh@gimp.org>
* gtk/gtkmain.c: always run a g_main_iteration, even if
+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.
+
Sat Dec 19 03:44:29 PST 1998 Manish Singh <yosh@gimp.org>
* gtk/gtkmain.c: always run a g_main_iteration, even if
+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.
+
Sat Dec 19 03:44:29 PST 1998 Manish Singh <yosh@gimp.org>
* gtk/gtkmain.c: always run a g_main_iteration, even if
+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.
+
Sat Dec 19 03:44:29 PST 1998 Manish Singh <yosh@gimp.org>
* gtk/gtkmain.c: always run a g_main_iteration, even if
+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.
+
Sat Dec 19 03:44:29 PST 1998 Manish Singh <yosh@gimp.org>
* gtk/gtkmain.c: always run a g_main_iteration, even if
# we do not want to make all gtk progs to link to thread libraries.
glib_cflags=`$GLIB_CONFIG glib gmodule --cflags`
glib_libs=`$GLIB_CONFIG glib gmodule --libs`
+ GLIB_LIBS="$glib_libs"
else
# Use uninstalled glib (assume they got the version right)
fi
# For use in gtk-config
- glib_cflags=`$GLIB_CONFIG --cflags`
- glib_libs=`$GLIB_CONFIG --libs`
+ glib_cflags=`$GLIB_CONFIG --cflags gmodule`
+ glib_libs=`$GLIB_CONFIG --libs gmodule`
glib_release=`$GLIB_CONFIG --version | sed 's%\\.[[0-9]]*$%%'`
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;
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);
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;
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);
g_return_if_fail (GTK_IS_ACCEL_LABEL (accel_label));
if (accel_label->queue_id == 0)
- accel_label->queue_id = gtk_idle_add_priority (GTK_PRIORITY_HIGH - 2,
+ accel_label->queue_id = gtk_idle_add_priority (G_PRIORITY_HIGH_IDLE,
(GtkFunction) gtk_accel_label_refetch_idle,
accel_label);
}
{
GTK_PRIVATE_SET_FLAG (resize_container, GTK_RESIZE_PENDING);
if (container_resize_queue == NULL)
- gtk_idle_add_priority (GTK_PRIORITY_INTERNAL - 1,
+ gtk_idle_add_priority (GTK_PRIORITY_RESIZE,
gtk_container_idle_sizer,
NULL);
container_resize_queue = g_slist_prepend (container_resize_queue, resize_container);
extern "C" {
#endif /* __cplusplus */
-#define GTK_PRIORITY_HIGH -20
-#define GTK_PRIORITY_INTERNAL -10
-#define GTK_PRIORITY_DEFAULT -5
-#define GTK_PRIORITY_LOW 10
+/* Priorities for redrawing and resizing
+ */
+#define GTK_PRIORITY_REDRAW (G_PRIORITY_HIGH_IDLE + 20)
+#define GTK_PRIORITY_RESIZE (G_PRIORITY_HIGH_IDLE + 10)
+
+/* Deprecated. Use G_PRIORITY #define's instead
+ */
+#define GTK_PRIORITY_HIGH G_PRIORITY_HIGH
+#define GTK_PRIORITY_INTERNAL GTK_PRIORITY_REDRAW
+#define GTK_PRIORITY_DEFAULT G_PRIORITY_DEFAULT_IDLE
+#define GTK_PRIORITY_LOW G_PRIORITY_LOW
typedef void (*GtkModuleInitFunc) (gint *argc,
gchar ***argv);
{
GTK_PRIVATE_SET_FLAG (widget, GTK_REDRAW_PENDING);
if (gtk_widget_redraw_queue == NULL)
- gtk_idle_add_priority (GTK_PRIORITY_INTERNAL,
+ gtk_idle_add_priority (GTK_PRIORITY_REDRAW,
gtk_widget_idle_draw,
NULL);
gtk_widget_redraw_queue = g_slist_prepend (gtk_widget_redraw_queue, widget);