summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorTim Janik <timj@gimp.org>1998-02-05 03:53:41 +0000
committerTim Janik <timj@src.gnome.org>1998-02-05 03:53:41 +0000
commit9258a7aecb1dfdff5fb0c91dee4c1a9a1d3cf13c (patch)
treedc0d64f09d14108d1aebc5a6f69ddc1e359f08b6 /gdk
parentf82814760ece61d9c7e500bbaae2696ec84cc50c (diff)
downloadgtk+-9258a7aecb1dfdff5fb0c91dee4c1a9a1d3cf13c.tar.gz
new function to perform the same actions as gtk_list_remove_items, but
Thu Feb 5 02:13:08 1998 Tim Janik <timj@gimp.org> * gtk/gtklist.h: * gtk/gtklist.c (gtk_list_remove_items_no_unref): new function to perform the same actions as gtk_list_remove_items, but supply the removed widgets with an additional reference count. * gtk/gtkmain.c (gtk_main_iteration_do): ignore events with event_widget == NULL, since they are bogus events from destroyed GdkWindows, exept for the case where event->type==GDK_PROPERTY_NOTIFY. Always handle expired timeout functions when returning from this function. * gtk/gtkwidget.c (gtk_widget_event): ignore GDK_EXPOSE events if event->window == NULL. Also, if this function couldn't handle the event for any reason (including failing assumptions), make the return value to look as if the event had been handled to avoid further processing (and warnings). * gtk/gtkwidget.h: * gtk/gtkwidget.c: remove gtk_widget_sink, because there is no point in providing such a function. * gdk/gdk.c (gdk_init): changed options `-name' and `-class' to `--name' and `--class', because the old names would confuse getopt(). these arguments have been introduced in the changes from gtk+970916 to gtk+970925 without a ChangeLog entry, changing argument names is painful, it would be nice if people would care about compatibility and consistency in the first place!
Diffstat (limited to 'gdk')
-rw-r--r--gdk/gdk.c4
-rw-r--r--gdk/x11/gdkmain-x11.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/gdk/gdk.c b/gdk/gdk.c
index ad62f9bc68..5caa6cdd6a 100644
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -331,7 +331,7 @@ gdk_init (int *argc,
(*argv)[i] = NULL;
}
}
- else if (strcmp ("-name", (*argv)[i]) == 0)
+ else if (strcmp ("--name", (*argv)[i]) == 0)
{
if ((i + 1) < *argc)
{
@@ -340,7 +340,7 @@ gdk_init (int *argc,
(*argv)[i] = NULL;
}
}
- else if (strcmp ("-class", (*argv)[i]) == 0)
+ else if (strcmp ("--class", (*argv)[i]) == 0)
{
if ((i + 1) < *argc)
{
diff --git a/gdk/x11/gdkmain-x11.c b/gdk/x11/gdkmain-x11.c
index ad62f9bc68..5caa6cdd6a 100644
--- a/gdk/x11/gdkmain-x11.c
+++ b/gdk/x11/gdkmain-x11.c
@@ -331,7 +331,7 @@ gdk_init (int *argc,
(*argv)[i] = NULL;
}
}
- else if (strcmp ("-name", (*argv)[i]) == 0)
+ else if (strcmp ("--name", (*argv)[i]) == 0)
{
if ((i + 1) < *argc)
{
@@ -340,7 +340,7 @@ gdk_init (int *argc,
(*argv)[i] = NULL;
}
}
- else if (strcmp ("-class", (*argv)[i]) == 0)
+ else if (strcmp ("--class", (*argv)[i]) == 0)
{
if ((i + 1) < *argc)
{