forked from AuroraMiddleware/gtk
filechooserentry: Remove beep function
There's only 2 places left where we potentially beep. We can call gtk_widget_error_bell() directly there.
This commit is contained in:
parent
0d10583695
commit
57766f1948
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user