diff options
author | Not Zed <NotZed@Ximian.com> | 2005-01-20 15:30:01 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2005-01-20 15:30:01 +0800 |
commit | 970299b13e5c8c19d4795e8f1ff3741d64861dc3 (patch) | |
tree | 4a6f5acad6a057719a7fa5ab2c3dd1c2e94a4f6c /widgets/misc/e-error.c | |
parent | 81bdfc74e8c4568656c5d8241a27b2dc78ad4bef (diff) | |
download | gsoc2013-evolution-970299b13e5c8c19d4795e8f1ff3741d64861dc3.tar gsoc2013-evolution-970299b13e5c8c19d4795e8f1ff3741d64861dc3.tar.gz gsoc2013-evolution-970299b13e5c8c19d4795e8f1ff3741d64861dc3.tar.bz2 gsoc2013-evolution-970299b13e5c8c19d4795e8f1ff3741d64861dc3.tar.lz gsoc2013-evolution-970299b13e5c8c19d4795e8f1ff3741d64861dc3.tar.xz gsoc2013-evolution-970299b13e5c8c19d4795e8f1ff3741d64861dc3.tar.zst gsoc2013-evolution-970299b13e5c8c19d4795e8f1ff3741d64861dc3.zip |
** See bug #64964.
2005-01-20 Not Zed <NotZed@Ximian.com>
** See bug #64964.
* e-error.c (e_error_newv): just use add_button, not
add_action_widget, for stock+label widgets, since they both show
the same, and for some reason set_default_response doesn't work
otherwise.
svn path=/trunk/; revision=28460
Diffstat (limited to 'widgets/misc/e-error.c')
-rw-r--r-- | widgets/misc/e-error.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/widgets/misc/e-error.c b/widgets/misc/e-error.c index 9c4fb4aafb..2cae9e0f96 100644 --- a/widgets/misc/e-error.c +++ b/widgets/misc/e-error.c @@ -460,12 +460,16 @@ e_error_newv(GtkWindow *parent, const char *tag, const char *arg0, va_list ap) for (b = e->buttons;b;b=b->next) { if (b->stock) { if (b->label) { +#if 0 /* FIXME: So although this looks like it will work, it wont. - Need to do it the hard way ... */ + Need to do it the hard way ... it also breaks the + default_response stuff */ w = gtk_button_new_from_stock(b->stock); gtk_button_set_label((GtkButton *)w, b->label); gtk_widget_show(w); gtk_dialog_add_action_widget(dialog, w, b->response); +#endif + gtk_dialog_add_button(dialog, b->label, b->response); } else gtk_dialog_add_button(dialog, b->stock, b->response); } else |