Merge pull request #27 from dubhater/master

Fix for issue #23
This commit is contained in:
Simon Gomizelj 2012-06-16 00:40:30 -07:00
commit 85e69bf58c
1 changed files with 7 additions and 0 deletions

View File

@ -37,6 +37,7 @@ static gboolean position_overlay_cb(GtkBin *overlay, GtkWidget *widget, GdkRecta
static gboolean button_press_cb(VteTerminal *vte, GdkEventButton *event);
static void beep_cb(GtkWindow *window);
static gboolean focus_in_cb(GtkWindow *window);
static gboolean focus_out_cb(GtkWindow *window);
static gboolean add_to_list_store(char *key, void *value, GtkListStore *store);
static GtkTreeModel *create_completion_model(VteTerminal *vte);
@ -170,6 +171,11 @@ gboolean focus_in_cb(GtkWindow *window) {
gtk_window_set_urgency_hint(window, FALSE);
return FALSE;
}
gboolean focus_out_cb(GtkWindow *window) {
gtk_window_set_urgency_hint(window, FALSE);
return FALSE;
}
/* }}} */
gboolean add_to_list_store(char *key,
@ -555,6 +561,7 @@ int main(int argc, char **argv) {
if (urgent_on_bell) {
g_signal_connect_swapped(vte, "beep", G_CALLBACK(beep_cb), window);
g_signal_connect(window, "focus-in-event", G_CALLBACK(focus_in_cb), NULL);
g_signal_connect(window, "focus-out-event", G_CALLBACK(focus_out_cb), NULL);
}
if (dynamic_title) {