+Mon Jun 5 13:29:31 2000 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
+ to sort of work by adding an extra return_exposes arg
+ to gdk_event_translate() - it might be better to simply
+ deprecate the function altogether and force people to rewrite
+ without it. gdk_window_scroll() handles most of it, and where
+ gdk_window_scroll() doesn't work, simply redrawing more does.
+
+ * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
+ assertion.
+
+ * gtk-config.in: Include PANGO_CFLAGS/LIBS.
+
+ * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a
+ bunch of pretty much useless /* Print debugging info */ comments
+ which had drifted away from the code they were commenting.
+
2000-06-02 Havoc Pennington <hp@pobox.com>
* gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
+Mon Jun 5 13:29:31 2000 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
+ to sort of work by adding an extra return_exposes arg
+ to gdk_event_translate() - it might be better to simply
+ deprecate the function altogether and force people to rewrite
+ without it. gdk_window_scroll() handles most of it, and where
+ gdk_window_scroll() doesn't work, simply redrawing more does.
+
+ * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
+ assertion.
+
+ * gtk-config.in: Include PANGO_CFLAGS/LIBS.
+
+ * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a
+ bunch of pretty much useless /* Print debugging info */ comments
+ which had drifted away from the code they were commenting.
+
2000-06-02 Havoc Pennington <hp@pobox.com>
* gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
+Mon Jun 5 13:29:31 2000 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
+ to sort of work by adding an extra return_exposes arg
+ to gdk_event_translate() - it might be better to simply
+ deprecate the function altogether and force people to rewrite
+ without it. gdk_window_scroll() handles most of it, and where
+ gdk_window_scroll() doesn't work, simply redrawing more does.
+
+ * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
+ assertion.
+
+ * gtk-config.in: Include PANGO_CFLAGS/LIBS.
+
+ * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a
+ bunch of pretty much useless /* Print debugging info */ comments
+ which had drifted away from the code they were commenting.
+
2000-06-02 Havoc Pennington <hp@pobox.com>
* gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
+Mon Jun 5 13:29:31 2000 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
+ to sort of work by adding an extra return_exposes arg
+ to gdk_event_translate() - it might be better to simply
+ deprecate the function altogether and force people to rewrite
+ without it. gdk_window_scroll() handles most of it, and where
+ gdk_window_scroll() doesn't work, simply redrawing more does.
+
+ * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
+ assertion.
+
+ * gtk-config.in: Include PANGO_CFLAGS/LIBS.
+
+ * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a
+ bunch of pretty much useless /* Print debugging info */ comments
+ which had drifted away from the code they were commenting.
+
2000-06-02 Havoc Pennington <hp@pobox.com>
* gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
+Mon Jun 5 13:29:31 2000 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
+ to sort of work by adding an extra return_exposes arg
+ to gdk_event_translate() - it might be better to simply
+ deprecate the function altogether and force people to rewrite
+ without it. gdk_window_scroll() handles most of it, and where
+ gdk_window_scroll() doesn't work, simply redrawing more does.
+
+ * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
+ assertion.
+
+ * gtk-config.in: Include PANGO_CFLAGS/LIBS.
+
+ * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a
+ bunch of pretty much useless /* Print debugging info */ comments
+ which had drifted away from the code they were commenting.
+
2000-06-02 Havoc Pennington <hp@pobox.com>
* gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
+Mon Jun 5 13:29:31 2000 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
+ to sort of work by adding an extra return_exposes arg
+ to gdk_event_translate() - it might be better to simply
+ deprecate the function altogether and force people to rewrite
+ without it. gdk_window_scroll() handles most of it, and where
+ gdk_window_scroll() doesn't work, simply redrawing more does.
+
+ * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
+ assertion.
+
+ * gtk-config.in: Include PANGO_CFLAGS/LIBS.
+
+ * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a
+ bunch of pretty much useless /* Print debugging info */ comments
+ which had drifted away from the code they were commenting.
+
2000-06-02 Havoc Pennington <hp@pobox.com>
* gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
+Mon Jun 5 13:29:31 2000 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
+ to sort of work by adding an extra return_exposes arg
+ to gdk_event_translate() - it might be better to simply
+ deprecate the function altogether and force people to rewrite
+ without it. gdk_window_scroll() handles most of it, and where
+ gdk_window_scroll() doesn't work, simply redrawing more does.
+
+ * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
+ assertion.
+
+ * gtk-config.in: Include PANGO_CFLAGS/LIBS.
+
+ * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a
+ bunch of pretty much useless /* Print debugging info */ comments
+ which had drifted away from the code they were commenting.
+
2000-06-02 Havoc Pennington <hp@pobox.com>
* gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
GdkEvent *event,
GList *filters);
static gint gdk_event_translate (GdkEvent *event,
- XEvent *xevent);
+ XEvent *xevent,
+ gboolean return_exposes);
#if 0
static Bool gdk_event_get_type (Display *display,
XEvent *xevent,
{
event = gdk_event_new ();
- if (gdk_event_translate (event, &xevent))
+ if (gdk_event_translate (event, &xevent, TRUE))
return event;
else
gdk_event_free (event);
static gint
gdk_event_translate (GdkEvent *event,
- XEvent *xevent)
+ XEvent *xevent,
+ gboolean return_exposes)
{
GdkWindow *window;
else
buf[charcount] = '\0';
- /* Print debugging info. */
-
#ifdef G_ENABLE_DEBUG
if (gdk_debug_flags & GDK_DEBUG_EVENTS)
{
&keysym, &compose);
event->key.keyval = keysym;
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
g_message ("key release:\t\twindow: %ld key: %12s %d",
xevent->xkey.window,
break;
case ButtonPress:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
g_message ("button press:\t\twindow: %ld x,y: %d %d button: %d",
xevent->xbutton.window,
break;
case ButtonRelease:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
g_message ("button release:\twindow: %ld x,y: %d %d button: %d",
xevent->xbutton.window,
break;
case MotionNotify:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
g_message ("motion notify:\t\twindow: %ld x,y: %d %d hint: %s",
xevent->xmotion.window,
break;
case EnterNotify:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
g_message ("enter notify:\t\twindow: %ld detail: %d subwin: %ld",
xevent->xcrossing.window,
break;
case LeaveNotify:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
g_message ("leave notify:\t\twindow: %ld detail: %d subwin: %ld",
xevent->xcrossing.window,
case NotifyAncestor:
case NotifyInferior:
case NotifyNonlinear:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
g_message ("focus %s:\t\twindow: %ld",
(xevent->xany.type == FocusIn) ? "in" : "out",
break;
case KeymapNotify:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
g_message ("keymap notify"));
break;
case Expose:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
g_message ("expose:\t\twindow: %ld %d x,y: %d %d w,h: %d %d%s",
xevent->xexpose.window, xevent->xexpose.count,
expose_rect.width = xevent->xexpose.width;
expose_rect.height = xevent->xexpose.height;
- _gdk_window_process_expose (window, xevent->xexpose.serial, &expose_rect);
+ if (return_exposes)
+ {
+ event->expose.type = GDK_EXPOSE;
+ event->expose.area = expose_rect;
+ event->expose.window = window;
+
+ return_val = TRUE;
+ }
+ else
+ {
+ _gdk_window_process_expose (window, xevent->xexpose.serial, &expose_rect);
+ return_val = FALSE;
+ }
+
return_val = FALSE;
}
break;
case GraphicsExpose:
- /* Print debugging info.
- */
{
GdkRectangle expose_rect;
GDK_NOTE (EVENTS,
g_message ("graphics expose:\tdrawable: %ld",
xevent->xgraphicsexpose.drawable));
-
expose_rect.x = xevent->xgraphicsexpose.x + xoffset;
expose_rect.y = xevent->xgraphicsexpose.y + yoffset;
expose_rect.width = xevent->xgraphicsexpose.width;
expose_rect.height = xevent->xgraphicsexpose.height;
+
+ if (return_exposes)
+ {
+ event->expose.type = GDK_EXPOSE;
+ event->expose.area = expose_rect;
+ event->expose.window = window;
- _gdk_window_process_expose (window, xevent->xgraphicsexpose.serial, &expose_rect);
-
- return_val = FALSE;
+ return_val = TRUE;
+ }
+ else
+ {
+ _gdk_window_process_expose (window, xevent->xgraphicsexpose.serial, &expose_rect);
+
+ return_val = FALSE;
+ }
+
}
break;
case NoExpose:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
g_message ("no expose:\t\tdrawable: %ld",
xevent->xnoexpose.drawable));
break;
case VisibilityNotify:
- /* Print debugging info.
- */
#ifdef G_ENABLE_DEBUG
if (gdk_debug_flags & GDK_DEBUG_EVENTS)
switch (xevent->xvisibility.state)
break;
case DestroyNotify:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
g_message ("destroy notify:\twindow: %ld",
xevent->xdestroywindow.window));
break;
case UnmapNotify:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
g_message ("unmap notify:\t\twindow: %ld",
xevent->xmap.window));
break;
case MapNotify:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
g_message ("map notify:\t\twindow: %ld",
xevent->xmap.window));
break;
case ReparentNotify:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
g_message ("reparent notify:\twindow: %ld x,y: %d %d parent: %ld ovr: %d",
xevent->xreparent.window,
break;
case ConfigureNotify:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
g_message ("configure notify:\twindow: %ld x,y: %d %d w,h: %d %d b-w: %d above: %ld ovr: %d%s",
xevent->xconfigure.window,
break;
case PropertyNotify:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
gchar *atom = gdk_atom_name (xevent->xproperty.atom);
g_message ("property notify:\twindow: %ld, atom(%ld): %s%s%s",
break;
case ColormapNotify:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
g_message ("colormap notify:\twindow: %ld",
xevent->xcolormap.window));
GList *tmp_list;
GdkFilterReturn result = GDK_FILTER_CONTINUE;
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
g_message ("client message:\twindow: %ld",
xevent->xclient.window));
break;
case MappingNotify:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
g_message ("mapping notify"));
GdkEvent event;
GdkPredicate *pred;
- if (gdk_event_translate (&event, xevent))
+ if (gdk_event_translate (&event, xevent, FALSE))
{
pred = (GdkPredicate*) arg;
return (* pred->func) (&event, pred->data);
gdk_event_queue_append (event);
node = gdk_queued_tail;
- if (gdk_event_translate (event, &xevent))
+ if (gdk_event_translate (event, &xevent, FALSE))
{
((GdkEventPrivate *)event)->flags &= ~GDK_EVENT_PENDING;
}
fi
done
fi
- echo -I@libdir@/gtk+/include $includes $glib_cflags @x_cflags@
+ echo -I@libdir@/gtk+/include $includes $glib_cflags @PANGO_CFLAGS@ @x_cflags@
fi
if test "$echo_libs" = "yes"; then
fi
done
- echo $libdirs @x_ldflags@ -lgtk -lgdk $my_glib_libs @INTLLIBS@ @x_libs@ @GDK_WLIBS@ @MATH_LIB@
+ echo $libdirs @x_ldflags@ -lgtk -lgdk $my_glib_libs @INTLLIBS@ @PANGO_LIBS@ @x_libs@ @GDK_WLIBS@ @MATH_LIB@
fi
_libs
.libs
libgtk-1.1.la
+testcalender
testgtk
testinput
testrgb
testselection
testtext
+testtextbuffer
simple
testtree
gtkcompat.h
* %GTK_TEXT_DIR_NONE.
*
* Set the default reading direction for widgets where the
- * direction has not been explicitely set by gtk_widget_set_direction().
+ * direction has not been explicitly set by gtk_widget_set_direction().
**/
void
gtk_widget_set_default_direction (GtkTextDirection dir)
{
- g_return_if_fail (dir == GTK_TEXT_DIR_RTL || GTK_TEXT_DIR_LTR);
+ g_return_if_fail (dir == GTK_TEXT_DIR_RTL || dir == GTK_TEXT_DIR_LTR);
gtk_default_direction = dir;
}