cleanup beep_handler

This commit is contained in:
Daniel Micay 2012-05-22 13:36:51 -04:00
parent fe1afee2ff
commit 7ed00e06e1
1 changed files with 3 additions and 4 deletions

View File

@ -133,10 +133,9 @@ static gboolean button_press_cb(VteTerminal *vte, GdkEventButton *event) {
} }
#ifdef URGENT_ON_BEEP #ifdef URGENT_ON_BEEP
static void beep_handler(__attribute__((unused)) VteTerminal *vte, GtkWidget *window) { static void beep_handler(__attribute__((unused)) VteTerminal *vte, GtkWindow *window) {
GtkWindow *gwin = GTK_WINDOW(window); if (!gtk_window_is_active(window)) {
if (!gtk_window_is_active(gwin)) { gtk_window_set_urgency_hint(window, TRUE);
gtk_window_set_urgency_hint(gwin, TRUE);
} }
} }
#endif #endif