[gtk+] filechooserentry: Remove beep function
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] filechooserentry: Remove beep function
- Date: Fri, 16 Dec 2011 19:15:25 +0000 (UTC)
commit 57766f194892fc670396bd79a28af71cf412c198
Author: Benjamin Otte <otte redhat com>
Date: Mon Nov 7 05:27:00 2011 +0100
filechooserentry: Remove beep function
There's only 2 places left where we potentially beep. We can call
gtk_widget_error_bell() directly there.
gtk/gtkfilechooserentry.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c
index 8faa435..88ddc30 100644
--- a/gtk/gtkfilechooserentry.c
+++ b/gtk/gtkfilechooserentry.c
@@ -262,19 +262,13 @@ match_selected_callback (GtkEntryCompletion *completion,
}
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)
{
/* 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]