Commit 57766f19 authored by Benjamin Otte's avatar Benjamin Otte

filechooserentry: Remove beep function

There's only 2 places left where we potentially beep. We can call
gtk_widget_error_bell() directly there.
parent 0d105836
......@@ -261,12 +261,6 @@ match_selected_callback (GtkEntryCompletion *completion,
return TRUE;
}
static void
beep (GtkFileChooserEntry *chooser_entry)
{
gtk_widget_error_bell (GTK_WIDGET (chooser_entry));
}
static void
set_complete_on_load (GtkFileChooserEntry *chooser_entry,
gboolean complete_on_load)
......@@ -274,7 +268,7 @@ set_complete_on_load (GtkFileChooserEntry *chooser_entry,
/* a completion was triggered, but we couldn't do it.
* So no text was inserted when pressing tab, so we beep */
if (chooser_entry->complete_on_load && !complete_on_load)
beep (chooser_entry);
gtk_widget_error_bell (GTK_WIDGET (chooser_entry));
chooser_entry->complete_on_load = complete_on_load;
}
......@@ -365,7 +359,7 @@ explicitly_complete (GtkFileChooserEntry *chooser_entry)
}
}
beep (chooser_entry);
gtk_widget_error_bell (GTK_WIDGET (chooser_entry));
}
static void
......
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