Commit fa59a168 authored by Christian Dywan's avatar Christian Dywan

Bug 558397 – gtk_widget_error_bell undefined without a screen

* gtk/gtkwidget.c (gtk_widget_error_bell): Test the settings
instance and return silently if unset

svn path=/trunk/; revision=21725
parent 1e28e51c
2008-10-29 Christian Dywan <christian@imendio.com>
Bug 558397 – gtk_widget_error_bell undefined without a screen
* gtk/gtkwidget.c (gtk_widget_error_bell): Test the settings
instance and return silently if unset
2008-10-28 Michael Natterer <mitch@imendio.com>
* gdk/keyname-table.h: fix small typo.
......
......@@ -6943,11 +6943,16 @@ gtk_widget_keynav_failed (GtkWidget *widget,
void
gtk_widget_error_bell (GtkWidget *widget)
{
GtkSettings* settings;
gboolean beep;
g_return_if_fail (GTK_IS_WIDGET (widget));
g_object_get (gtk_widget_get_settings (widget),
settings = gtk_widget_get_settings (widget);
if (!settings)
return;
g_object_get (settings,
"gtk-error-bell", &beep,
NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment