+Thu Feb 18 11:46:57 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk.m4: Fix glib_config_args gtk_config_args
+ confusion. (pointed out by
+ Roland Dreier <droland@mail.math.okstate.edu>)
+
+ * gtk/gtksocket.c gtk/gtkmain.c gtk/gtkdebug.h
+ (gtk_socket_filter_func): Move the plug-socket
+ debugging code to a new "plugsocket" debug keys
+ from the previous hardcoded DPRINTF.
+
Thu Feb 18 00:54:46 1999 Tim Janik <timj@gtk.org>
* gtk/gtkclist.c: added widget arg ::titles_active.
+Thu Feb 18 11:46:57 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk.m4: Fix glib_config_args gtk_config_args
+ confusion. (pointed out by
+ Roland Dreier <droland@mail.math.okstate.edu>)
+
+ * gtk/gtksocket.c gtk/gtkmain.c gtk/gtkdebug.h
+ (gtk_socket_filter_func): Move the plug-socket
+ debugging code to a new "plugsocket" debug keys
+ from the previous hardcoded DPRINTF.
+
Thu Feb 18 00:54:46 1999 Tim Janik <timj@gtk.org>
* gtk/gtkclist.c: added widget arg ::titles_active.
+Thu Feb 18 11:46:57 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk.m4: Fix glib_config_args gtk_config_args
+ confusion. (pointed out by
+ Roland Dreier <droland@mail.math.okstate.edu>)
+
+ * gtk/gtksocket.c gtk/gtkmain.c gtk/gtkdebug.h
+ (gtk_socket_filter_func): Move the plug-socket
+ debugging code to a new "plugsocket" debug keys
+ from the previous hardcoded DPRINTF.
+
Thu Feb 18 00:54:46 1999 Tim Janik <timj@gtk.org>
* gtk/gtkclist.c: added widget arg ::titles_active.
+Thu Feb 18 11:46:57 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk.m4: Fix glib_config_args gtk_config_args
+ confusion. (pointed out by
+ Roland Dreier <droland@mail.math.okstate.edu>)
+
+ * gtk/gtksocket.c gtk/gtkmain.c gtk/gtkdebug.h
+ (gtk_socket_filter_func): Move the plug-socket
+ debugging code to a new "plugsocket" debug keys
+ from the previous hardcoded DPRINTF.
+
Thu Feb 18 00:54:46 1999 Tim Janik <timj@gtk.org>
* gtk/gtkclist.c: added widget arg ::titles_active.
+Thu Feb 18 11:46:57 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk.m4: Fix glib_config_args gtk_config_args
+ confusion. (pointed out by
+ Roland Dreier <droland@mail.math.okstate.edu>)
+
+ * gtk/gtksocket.c gtk/gtkmain.c gtk/gtkdebug.h
+ (gtk_socket_filter_func): Move the plug-socket
+ debugging code to a new "plugsocket" debug keys
+ from the previous hardcoded DPRINTF.
+
Thu Feb 18 00:54:46 1999 Tim Janik <timj@gtk.org>
* gtk/gtkclist.c: added widget arg ::titles_active.
+Thu Feb 18 11:46:57 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk.m4: Fix glib_config_args gtk_config_args
+ confusion. (pointed out by
+ Roland Dreier <droland@mail.math.okstate.edu>)
+
+ * gtk/gtksocket.c gtk/gtkmain.c gtk/gtkdebug.h
+ (gtk_socket_filter_func): Move the plug-socket
+ debugging code to a new "plugsocket" debug keys
+ from the previous hardcoded DPRINTF.
+
Thu Feb 18 00:54:46 1999 Tim Janik <timj@gtk.org>
* gtk/gtkclist.c: added widget arg ::titles_active.
+Thu Feb 18 11:46:57 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk.m4: Fix glib_config_args gtk_config_args
+ confusion. (pointed out by
+ Roland Dreier <droland@mail.math.okstate.edu>)
+
+ * gtk/gtksocket.c gtk/gtkmain.c gtk/gtkdebug.h
+ (gtk_socket_filter_func): Move the plug-socket
+ debugging code to a new "plugsocket" debug keys
+ from the previous hardcoded DPRINTF.
+
Thu Feb 18 00:54:46 1999 Tim Janik <timj@gtk.org>
* gtk/gtkclist.c: added widget arg ::titles_active.
do
case "$module" in
gthread)
- glib_config_args="$glib_config_args gthread"
+ gtk_config_args="$gtk_config_args gthread"
;;
esac
done
#endif /* __cplusplus */
typedef enum {
- GTK_DEBUG_OBJECTS = 1 << 0,
- GTK_DEBUG_MISC = 1 << 1,
- GTK_DEBUG_SIGNALS = 1 << 2,
- GTK_DEBUG_DND = 1 << 3
+ GTK_DEBUG_OBJECTS = 1 << 0,
+ GTK_DEBUG_MISC = 1 << 1,
+ GTK_DEBUG_SIGNALS = 1 << 2,
+ GTK_DEBUG_DND = 1 << 3,
+ GTK_DEBUG_PLUGSOCKET = 1 << 4
} GtkDebugFlag;
#ifdef G_ENABLE_DEBUG
{"objects", GTK_DEBUG_OBJECTS},
{"misc", GTK_DEBUG_MISC},
{"signals", GTK_DEBUG_SIGNALS},
- {"dnd", GTK_DEBUG_DND}
+ {"dnd", GTK_DEBUG_DND},
+ {"plugsocket", GTK_DEBUG_PLUGSOCKET}
};
static const guint gtk_ndebug_keys = sizeof (gtk_debug_keys) / sizeof (GDebugKey);
GdkEvent *event,
gpointer data);
-#define DEBUG_PLUGSOCKET
-
-#ifdef DEBUG_PLUGSOCKET
-#define DPRINTF(arg) g_print arg
-#else
-#define DPRINTF(arg)
-#endif
-
/* From Tk */
#define EMBEDDED_APP_WANTS_FOCUS NotifyNormal+20
(allocation->height == socket->current_height))
{
gtk_socket_send_configure_event (socket);
- DPRINTF(( "No change: %d %d\n",
- allocation->width, allocation->height));
+ GTK_NOTE(PLUGSOCKET,
+ g_message ("GtkSocket - allocated no change: %d %d",
+ allocation->width, allocation->height));
}
else
{
gdk_window_move_resize (socket->plug_window,
0, 0,
allocation->width, allocation->height);
- DPRINTF(("configuring: %d %d\n",
- allocation->width, allocation->height));
+ GTK_NOTE(PLUGSOCKET,
+ g_message ("GtkSocket - allocated: %d %d",
+ allocation->width, allocation->height));
socket->current_width = allocation->width;
socket->current_height = allocation->height;
}
g_return_val_if_fail (GTK_IS_SOCKET (widget), FALSE);
socket = GTK_SOCKET (widget);
- DPRINTF (( "Got focus\n"));
-
if (socket->focus_in && socket->plug_window)
XSetInputFocus (GDK_DISPLAY (),
GDK_WINDOW_XWINDOW (socket->plug_window),
socket->request_width = xcwe->width;
socket->request_height = xcwe->height;
socket->have_size = TRUE;
-
- DPRINTF(("Window created with size: %d %d\n",
- socket->request_width,
- socket->request_height));
+
+ GTK_NOTE(PLUGSOCKET,
+ g_message ("GtkSocket - window created with size: %d %d",
+ socket->request_width,
+ socket->request_height));
gtk_widget_queue_resize (widget);
}
socket->request_height = xcre->height;
socket->have_size = TRUE;
- DPRINTF(("Configure request: %d %d\n",
- socket->request_width,
- socket->request_height));
+ GTK_NOTE(PLUGSOCKET,
+ g_message ("GtkSocket - configure request: %d %d",
+ socket->request_width,
+ socket->request_height));
gtk_widget_queue_resize (widget);
}
(xdwe->window == GDK_WINDOW_XWINDOW (socket->plug_window)))
{
GtkWidget *toplevel;
-
- DPRINTF(("Destroy Notify\n"));
+
+ GTK_NOTE(PLUGSOCKET,
+ g_message ("GtkSocket - destroy notify"));
toplevel = gtk_widget_get_toplevel (GTK_WIDGET (socket));
if (toplevel && GTK_IS_WINDOW (toplevel))
if (xevent->xmaprequest.window ==
GDK_WINDOW_XWINDOW (socket->plug_window))
{
- DPRINTF(("Map Request\n"));
+ GTK_NOTE(PLUGSOCKET,
+ g_message ("GtkSocket - Map Request"));
gdk_window_show (socket->plug_window);