summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserentry.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-11-07 05:27:00 +0100
committerBenjamin Otte <otte@redhat.com>2011-12-16 20:09:14 +0100
commit57766f194892fc670396bd79a28af71cf412c198 (patch)
tree7ca962843f4c6cd97e3976c808e1de3d9b4d17f7 /gtk/gtkfilechooserentry.c
parent0d105836957cef397722bd19654dd2e6ebb81c46 (diff)
downloadgtk+-57766f194892fc670396bd79a28af71cf412c198.tar.gz
filechooserentry: Remove beep function
There's only 2 places left where we potentially beep. We can call gtk_widget_error_bell() directly there.
Diffstat (limited to 'gtk/gtkfilechooserentry.c')
-rw-r--r--gtk/gtkfilechooserentry.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c
index 8faa435e4b..88ddc30c41 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