diff options
author | Federico Mena Quintero <federico@ximian.com> | 2003-12-15 21:47:50 +0000 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2003-12-15 21:47:50 +0000 |
commit | 7054ddccd816256894bb048e4937a44f332137fb (patch) | |
tree | d405d87cc361e3d66254ee2654ba346bfa713aa8 /gtk | |
parent | 64687f71082d30712e8d0e796ed8acfa9c46a822 (diff) | |
download | gtk+-7054ddccd816256894bb048e4937a44f332137fb.tar.gz |
Removed. (gtk_dialog_close): Don't call dialog_has_cancel(). At least
2003-12-15 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkdialog.c (dialog_has_cancel): Removed.
(gtk_dialog_close): Don't call dialog_has_cancel(). At least
allows sane behavior for #101293.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkdialog.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c index 7f81f9d83d..fb4ca8bec0 100644 --- a/gtk/gtkdialog.c +++ b/gtk/gtkdialog.c @@ -354,30 +354,6 @@ gtk_dialog_style_set (GtkWidget *widget, update_spacings (GTK_DIALOG (widget)); } -static gboolean -dialog_has_cancel (GtkDialog *dialog) -{ - GList *children, *tmp_list; - gboolean ret = FALSE; - - children = gtk_container_get_children (GTK_CONTAINER (dialog->action_area)); - - for (tmp_list = children; tmp_list; tmp_list = tmp_list->next) - { - ResponseData *rd = get_response_data (tmp_list->data); - - if (rd && rd->response_id == GTK_RESPONSE_CANCEL) - { - ret = TRUE; - break; - } - } - - g_list_free (children); - - return ret; -} - static void gtk_dialog_close (GtkDialog *dialog) { @@ -386,9 +362,6 @@ gtk_dialog_close (GtkDialog *dialog) GtkWidget *widget = GTK_WIDGET (dialog); GdkEvent *event; - if (!dialog_has_cancel (dialog)) - return; - event = gdk_event_new (GDK_DELETE); event->any.window = g_object_ref (widget->window); |