forked from AuroraMiddleware/gtk
changed some debugging messages to be prefixed by "Gdk:".
Tue Mar 17 16:19:47 1998 Tim Janik <timj@gimp.org> * gdk/gdk.c: * gdk/gdkvisual.c: changed some debugging messages to be prefixed by "Gdk:". * gtk/gtkwidget.c (gtk_widget_real_draw): applied gtk-shige-980317-0.patch.gz to set all event fields, but modified the event.send_event field to be set to TRUE, since the event is not really comming from the server. * gtk/gtkwindow.c (gtk_window_init): applied gtk-ograf-980317-1.patch.gz which cares about an initial setting of program name and program class. * gdk/gdk.c (gdk_init): applied gtk-ograf-980317-0.patch.gz, which strips leading pathnames from gdk_progname.
This commit is contained in:
parent
a6e2c24b60
commit
a783d668f1
17
ChangeLog
17
ChangeLog
@ -1,3 +1,20 @@
|
|||||||
|
Tue Mar 17 16:19:47 1998 Tim Janik <timj@gimp.org>
|
||||||
|
|
||||||
|
* gdk/gdk.c:
|
||||||
|
* gdk/gdkvisual.c: changed some debugging messages to be prefixed
|
||||||
|
by "Gdk:".
|
||||||
|
|
||||||
|
* gtk/gtkwidget.c (gtk_widget_real_draw): applied
|
||||||
|
gtk-shige-980317-0.patch.gz to set all event fields, but modified
|
||||||
|
the event.send_event field to be set to TRUE, since the event is not
|
||||||
|
really comming from the server.
|
||||||
|
|
||||||
|
* gtk/gtkwindow.c (gtk_window_init): applied gtk-ograf-980317-1.patch.gz
|
||||||
|
which cares about an initial setting of program name and program class.
|
||||||
|
|
||||||
|
* gdk/gdk.c (gdk_init): applied gtk-ograf-980317-0.patch.gz, which
|
||||||
|
strips leading pathnames from gdk_progname.
|
||||||
|
|
||||||
Tue Mar 17 12:36:35 1998 Tim Janik <timj@gimp.org>
|
Tue Mar 17 12:36:35 1998 Tim Janik <timj@gimp.org>
|
||||||
|
|
||||||
* gtk/gtkstyle.c (gtk_default_draw_arrow): fixed a bug about drawing
|
* gtk/gtkstyle.c (gtk_default_draw_arrow): fixed a bug about drawing
|
||||||
|
@ -1,3 +1,20 @@
|
|||||||
|
Tue Mar 17 16:19:47 1998 Tim Janik <timj@gimp.org>
|
||||||
|
|
||||||
|
* gdk/gdk.c:
|
||||||
|
* gdk/gdkvisual.c: changed some debugging messages to be prefixed
|
||||||
|
by "Gdk:".
|
||||||
|
|
||||||
|
* gtk/gtkwidget.c (gtk_widget_real_draw): applied
|
||||||
|
gtk-shige-980317-0.patch.gz to set all event fields, but modified
|
||||||
|
the event.send_event field to be set to TRUE, since the event is not
|
||||||
|
really comming from the server.
|
||||||
|
|
||||||
|
* gtk/gtkwindow.c (gtk_window_init): applied gtk-ograf-980317-1.patch.gz
|
||||||
|
which cares about an initial setting of program name and program class.
|
||||||
|
|
||||||
|
* gdk/gdk.c (gdk_init): applied gtk-ograf-980317-0.patch.gz, which
|
||||||
|
strips leading pathnames from gdk_progname.
|
||||||
|
|
||||||
Tue Mar 17 12:36:35 1998 Tim Janik <timj@gimp.org>
|
Tue Mar 17 12:36:35 1998 Tim Janik <timj@gimp.org>
|
||||||
|
|
||||||
* gtk/gtkstyle.c (gtk_default_draw_arrow): fixed a bug about drawing
|
* gtk/gtkstyle.c (gtk_default_draw_arrow): fixed a bug about drawing
|
||||||
|
@ -1,3 +1,20 @@
|
|||||||
|
Tue Mar 17 16:19:47 1998 Tim Janik <timj@gimp.org>
|
||||||
|
|
||||||
|
* gdk/gdk.c:
|
||||||
|
* gdk/gdkvisual.c: changed some debugging messages to be prefixed
|
||||||
|
by "Gdk:".
|
||||||
|
|
||||||
|
* gtk/gtkwidget.c (gtk_widget_real_draw): applied
|
||||||
|
gtk-shige-980317-0.patch.gz to set all event fields, but modified
|
||||||
|
the event.send_event field to be set to TRUE, since the event is not
|
||||||
|
really comming from the server.
|
||||||
|
|
||||||
|
* gtk/gtkwindow.c (gtk_window_init): applied gtk-ograf-980317-1.patch.gz
|
||||||
|
which cares about an initial setting of program name and program class.
|
||||||
|
|
||||||
|
* gdk/gdk.c (gdk_init): applied gtk-ograf-980317-0.patch.gz, which
|
||||||
|
strips leading pathnames from gdk_progname.
|
||||||
|
|
||||||
Tue Mar 17 12:36:35 1998 Tim Janik <timj@gimp.org>
|
Tue Mar 17 12:36:35 1998 Tim Janik <timj@gimp.org>
|
||||||
|
|
||||||
* gtk/gtkstyle.c (gtk_default_draw_arrow): fixed a bug about drawing
|
* gtk/gtkstyle.c (gtk_default_draw_arrow): fixed a bug about drawing
|
||||||
|
@ -1,3 +1,20 @@
|
|||||||
|
Tue Mar 17 16:19:47 1998 Tim Janik <timj@gimp.org>
|
||||||
|
|
||||||
|
* gdk/gdk.c:
|
||||||
|
* gdk/gdkvisual.c: changed some debugging messages to be prefixed
|
||||||
|
by "Gdk:".
|
||||||
|
|
||||||
|
* gtk/gtkwidget.c (gtk_widget_real_draw): applied
|
||||||
|
gtk-shige-980317-0.patch.gz to set all event fields, but modified
|
||||||
|
the event.send_event field to be set to TRUE, since the event is not
|
||||||
|
really comming from the server.
|
||||||
|
|
||||||
|
* gtk/gtkwindow.c (gtk_window_init): applied gtk-ograf-980317-1.patch.gz
|
||||||
|
which cares about an initial setting of program name and program class.
|
||||||
|
|
||||||
|
* gdk/gdk.c (gdk_init): applied gtk-ograf-980317-0.patch.gz, which
|
||||||
|
strips leading pathnames from gdk_progname.
|
||||||
|
|
||||||
Tue Mar 17 12:36:35 1998 Tim Janik <timj@gimp.org>
|
Tue Mar 17 12:36:35 1998 Tim Janik <timj@gimp.org>
|
||||||
|
|
||||||
* gtk/gtkstyle.c (gtk_default_draw_arrow): fixed a bug about drawing
|
* gtk/gtkstyle.c (gtk_default_draw_arrow): fixed a bug about drawing
|
||||||
|
@ -1,3 +1,20 @@
|
|||||||
|
Tue Mar 17 16:19:47 1998 Tim Janik <timj@gimp.org>
|
||||||
|
|
||||||
|
* gdk/gdk.c:
|
||||||
|
* gdk/gdkvisual.c: changed some debugging messages to be prefixed
|
||||||
|
by "Gdk:".
|
||||||
|
|
||||||
|
* gtk/gtkwidget.c (gtk_widget_real_draw): applied
|
||||||
|
gtk-shige-980317-0.patch.gz to set all event fields, but modified
|
||||||
|
the event.send_event field to be set to TRUE, since the event is not
|
||||||
|
really comming from the server.
|
||||||
|
|
||||||
|
* gtk/gtkwindow.c (gtk_window_init): applied gtk-ograf-980317-1.patch.gz
|
||||||
|
which cares about an initial setting of program name and program class.
|
||||||
|
|
||||||
|
* gdk/gdk.c (gdk_init): applied gtk-ograf-980317-0.patch.gz, which
|
||||||
|
strips leading pathnames from gdk_progname.
|
||||||
|
|
||||||
Tue Mar 17 12:36:35 1998 Tim Janik <timj@gimp.org>
|
Tue Mar 17 12:36:35 1998 Tim Janik <timj@gimp.org>
|
||||||
|
|
||||||
* gtk/gtkstyle.c (gtk_default_draw_arrow): fixed a bug about drawing
|
* gtk/gtkstyle.c (gtk_default_draw_arrow): fixed a bug about drawing
|
||||||
|
@ -1,3 +1,20 @@
|
|||||||
|
Tue Mar 17 16:19:47 1998 Tim Janik <timj@gimp.org>
|
||||||
|
|
||||||
|
* gdk/gdk.c:
|
||||||
|
* gdk/gdkvisual.c: changed some debugging messages to be prefixed
|
||||||
|
by "Gdk:".
|
||||||
|
|
||||||
|
* gtk/gtkwidget.c (gtk_widget_real_draw): applied
|
||||||
|
gtk-shige-980317-0.patch.gz to set all event fields, but modified
|
||||||
|
the event.send_event field to be set to TRUE, since the event is not
|
||||||
|
really comming from the server.
|
||||||
|
|
||||||
|
* gtk/gtkwindow.c (gtk_window_init): applied gtk-ograf-980317-1.patch.gz
|
||||||
|
which cares about an initial setting of program name and program class.
|
||||||
|
|
||||||
|
* gdk/gdk.c (gdk_init): applied gtk-ograf-980317-0.patch.gz, which
|
||||||
|
strips leading pathnames from gdk_progname.
|
||||||
|
|
||||||
Tue Mar 17 12:36:35 1998 Tim Janik <timj@gimp.org>
|
Tue Mar 17 12:36:35 1998 Tim Janik <timj@gimp.org>
|
||||||
|
|
||||||
* gtk/gtkstyle.c (gtk_default_draw_arrow): fixed a bug about drawing
|
* gtk/gtkstyle.c (gtk_default_draw_arrow): fixed a bug about drawing
|
||||||
|
@ -1,3 +1,20 @@
|
|||||||
|
Tue Mar 17 16:19:47 1998 Tim Janik <timj@gimp.org>
|
||||||
|
|
||||||
|
* gdk/gdk.c:
|
||||||
|
* gdk/gdkvisual.c: changed some debugging messages to be prefixed
|
||||||
|
by "Gdk:".
|
||||||
|
|
||||||
|
* gtk/gtkwidget.c (gtk_widget_real_draw): applied
|
||||||
|
gtk-shige-980317-0.patch.gz to set all event fields, but modified
|
||||||
|
the event.send_event field to be set to TRUE, since the event is not
|
||||||
|
really comming from the server.
|
||||||
|
|
||||||
|
* gtk/gtkwindow.c (gtk_window_init): applied gtk-ograf-980317-1.patch.gz
|
||||||
|
which cares about an initial setting of program name and program class.
|
||||||
|
|
||||||
|
* gdk/gdk.c (gdk_init): applied gtk-ograf-980317-0.patch.gz, which
|
||||||
|
strips leading pathnames from gdk_progname.
|
||||||
|
|
||||||
Tue Mar 17 12:36:35 1998 Tim Janik <timj@gimp.org>
|
Tue Mar 17 12:36:35 1998 Tim Janik <timj@gimp.org>
|
||||||
|
|
||||||
* gtk/gtkstyle.c (gtk_default_draw_arrow): fixed a bug about drawing
|
* gtk/gtkstyle.c (gtk_default_draw_arrow): fixed a bug about drawing
|
||||||
|
16
gdk/gdk.c
16
gdk/gdk.c
@ -307,7 +307,17 @@ gdk_init (int *argc,
|
|||||||
if (argc && argv)
|
if (argc && argv)
|
||||||
{
|
{
|
||||||
if (*argc > 0)
|
if (*argc > 0)
|
||||||
gdk_progname = (*argv)[0];
|
{
|
||||||
|
gchar *d;
|
||||||
|
|
||||||
|
d = strrchr((*argv)[0],'/');
|
||||||
|
if (d != NULL)
|
||||||
|
gdk_progname = g_strdup (d + 1);
|
||||||
|
else
|
||||||
|
gdk_progname = g_strdup ((*argv)[0]);
|
||||||
|
GDK_NOTE (MISC,
|
||||||
|
g_print ("Gdk: progname: \"%s\"\n", gdk_progname));
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 1; i < *argc;)
|
for (i = 1; i < *argc;)
|
||||||
{
|
{
|
||||||
@ -474,7 +484,7 @@ gdk_init (int *argc,
|
|||||||
|
|
||||||
connection_number = ConnectionNumber (gdk_display);
|
connection_number = ConnectionNumber (gdk_display);
|
||||||
GDK_NOTE (MISC,
|
GDK_NOTE (MISC,
|
||||||
g_print ("connection number: %d\n", connection_number));
|
g_print ("Gdk: connection number: %d\n", connection_number));
|
||||||
|
|
||||||
if (synchronize)
|
if (synchronize)
|
||||||
XSynchronize (gdk_display, True);
|
XSynchronize (gdk_display, True);
|
||||||
@ -4013,7 +4023,7 @@ gdk_event_send_clientmessage_toall(GdkEvent *event)
|
|||||||
curwin = gdk_get_client_window(gdk_display, ret_children[i]);
|
curwin = gdk_get_client_window(gdk_display, ret_children[i]);
|
||||||
sev.xclient.window = curwin;
|
sev.xclient.window = curwin;
|
||||||
if (!gdk_send_xevent (curwin, False, NoEventMask, &sev))
|
if (!gdk_send_xevent (curwin, False, NoEventMask, &sev))
|
||||||
GDK_NOTE (MISC, g_print("Sending client message %ld to %#lx failed\n",
|
GDK_NOTE (MISC, g_print("Gdk: Sending client message %ld to %#lx failed\n",
|
||||||
event->client.message_type, curwin));
|
event->client.message_type, curwin));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -204,7 +204,7 @@ gdk_visual_init ()
|
|||||||
#ifdef G_ENABLE_DEBUG
|
#ifdef G_ENABLE_DEBUG
|
||||||
if (gdk_debug_flags & GDK_DEBUG_MISC)
|
if (gdk_debug_flags & GDK_DEBUG_MISC)
|
||||||
for (i = 0; i < nvisuals; i++)
|
for (i = 0; i < nvisuals; i++)
|
||||||
g_print ("visual: %s: %d\n",
|
g_print ("Gdk: visual: %s: %d\n",
|
||||||
visual_names[visuals[i].visual.type],
|
visual_names[visuals[i].visual.type],
|
||||||
visuals[i].visual.depth);
|
visuals[i].visual.depth);
|
||||||
#endif /* G_ENABLE_DEBUG */
|
#endif /* G_ENABLE_DEBUG */
|
||||||
|
@ -119,7 +119,6 @@ gdk_window_xid_at_coords(gint x, gint y, GList *excludes, gboolean excl_child)
|
|||||||
Window root,child=0,parent_win=0,root_win=0;
|
Window root,child=0,parent_win=0,root_win=0;
|
||||||
unsigned int num;
|
unsigned int num;
|
||||||
int i;
|
int i;
|
||||||
GList *gl;
|
|
||||||
|
|
||||||
window=(GdkWindow*)&gdk_root_parent;
|
window=(GdkWindow*)&gdk_root_parent;
|
||||||
private=(GdkWindowPrivate*)window;
|
private=(GdkWindowPrivate*)window;
|
||||||
|
@ -307,7 +307,17 @@ gdk_init (int *argc,
|
|||||||
if (argc && argv)
|
if (argc && argv)
|
||||||
{
|
{
|
||||||
if (*argc > 0)
|
if (*argc > 0)
|
||||||
gdk_progname = (*argv)[0];
|
{
|
||||||
|
gchar *d;
|
||||||
|
|
||||||
|
d = strrchr((*argv)[0],'/');
|
||||||
|
if (d != NULL)
|
||||||
|
gdk_progname = g_strdup (d + 1);
|
||||||
|
else
|
||||||
|
gdk_progname = g_strdup ((*argv)[0]);
|
||||||
|
GDK_NOTE (MISC,
|
||||||
|
g_print ("Gdk: progname: \"%s\"\n", gdk_progname));
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 1; i < *argc;)
|
for (i = 1; i < *argc;)
|
||||||
{
|
{
|
||||||
@ -474,7 +484,7 @@ gdk_init (int *argc,
|
|||||||
|
|
||||||
connection_number = ConnectionNumber (gdk_display);
|
connection_number = ConnectionNumber (gdk_display);
|
||||||
GDK_NOTE (MISC,
|
GDK_NOTE (MISC,
|
||||||
g_print ("connection number: %d\n", connection_number));
|
g_print ("Gdk: connection number: %d\n", connection_number));
|
||||||
|
|
||||||
if (synchronize)
|
if (synchronize)
|
||||||
XSynchronize (gdk_display, True);
|
XSynchronize (gdk_display, True);
|
||||||
@ -4013,7 +4023,7 @@ gdk_event_send_clientmessage_toall(GdkEvent *event)
|
|||||||
curwin = gdk_get_client_window(gdk_display, ret_children[i]);
|
curwin = gdk_get_client_window(gdk_display, ret_children[i]);
|
||||||
sev.xclient.window = curwin;
|
sev.xclient.window = curwin;
|
||||||
if (!gdk_send_xevent (curwin, False, NoEventMask, &sev))
|
if (!gdk_send_xevent (curwin, False, NoEventMask, &sev))
|
||||||
GDK_NOTE (MISC, g_print("Sending client message %ld to %#lx failed\n",
|
GDK_NOTE (MISC, g_print("Gdk: Sending client message %ld to %#lx failed\n",
|
||||||
event->client.message_type, curwin));
|
event->client.message_type, curwin));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -204,7 +204,7 @@ gdk_visual_init ()
|
|||||||
#ifdef G_ENABLE_DEBUG
|
#ifdef G_ENABLE_DEBUG
|
||||||
if (gdk_debug_flags & GDK_DEBUG_MISC)
|
if (gdk_debug_flags & GDK_DEBUG_MISC)
|
||||||
for (i = 0; i < nvisuals; i++)
|
for (i = 0; i < nvisuals; i++)
|
||||||
g_print ("visual: %s: %d\n",
|
g_print ("Gdk: visual: %s: %d\n",
|
||||||
visual_names[visuals[i].visual.type],
|
visual_names[visuals[i].visual.type],
|
||||||
visuals[i].visual.depth);
|
visuals[i].visual.depth);
|
||||||
#endif /* G_ENABLE_DEBUG */
|
#endif /* G_ENABLE_DEBUG */
|
||||||
|
@ -119,7 +119,6 @@ gdk_window_xid_at_coords(gint x, gint y, GList *excludes, gboolean excl_child)
|
|||||||
Window root,child=0,parent_win=0,root_win=0;
|
Window root,child=0,parent_win=0,root_win=0;
|
||||||
unsigned int num;
|
unsigned int num;
|
||||||
int i;
|
int i;
|
||||||
GList *gl;
|
|
||||||
|
|
||||||
window=(GdkWindow*)&gdk_root_parent;
|
window=(GdkWindow*)&gdk_root_parent;
|
||||||
private=(GdkWindowPrivate*)window;
|
private=(GdkWindowPrivate*)window;
|
||||||
|
@ -3625,9 +3625,11 @@ gtk_widget_real_draw (GtkWidget *widget,
|
|||||||
if (GTK_WIDGET_DRAWABLE (widget))
|
if (GTK_WIDGET_DRAWABLE (widget))
|
||||||
{
|
{
|
||||||
event.type = GDK_EXPOSE;
|
event.type = GDK_EXPOSE;
|
||||||
|
event.send_event = TRUE;
|
||||||
event.window = widget->window;
|
event.window = widget->window;
|
||||||
event.area = *area;
|
event.area = *area;
|
||||||
|
event.count = 0;
|
||||||
|
|
||||||
gdk_window_ref (event.window);
|
gdk_window_ref (event.window);
|
||||||
gtk_widget_event (widget, (GdkEvent*) &event);
|
gtk_widget_event (widget, (GdkEvent*) &event);
|
||||||
gdk_window_unref (event.window);
|
gdk_window_unref (event.window);
|
||||||
|
@ -212,8 +212,8 @@ gtk_window_init (GtkWindow *window)
|
|||||||
GTK_WIDGET_SET_FLAGS (window, GTK_TOPLEVEL);
|
GTK_WIDGET_SET_FLAGS (window, GTK_TOPLEVEL);
|
||||||
|
|
||||||
window->title = NULL;
|
window->title = NULL;
|
||||||
window->wmclass_name = NULL;
|
window->wmclass_name = g_strdup (gdk_progname);
|
||||||
window->wmclass_class = NULL;
|
window->wmclass_class = g_strdup (gdk_progclass);
|
||||||
window->type = GTK_WINDOW_TOPLEVEL;
|
window->type = GTK_WINDOW_TOPLEVEL;
|
||||||
window->accelerator_tables = NULL;
|
window->accelerator_tables = NULL;
|
||||||
window->focus_widget = NULL;
|
window->focus_widget = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user