]> Pileus Git - ~andy/gtk/commitdiff
filechooserentry: Remove beep function
authorBenjamin Otte <otte@redhat.com>
Mon, 7 Nov 2011 04:27:00 +0000 (05:27 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 16 Dec 2011 19:09:14 +0000 (20:09 +0100)
There's only 2 places left where we potentially beep. We can call
gtk_widget_error_bell() directly there.

gtk/gtkfilechooserentry.c

index 8faa435e4b7f1f86ae78691e3be5fca5fc9330b8..88ddc30c41d55605537c98274a8135f7a8310858 100644 (file)
@@ -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