use g_signal_connect_swapped to clean up a bit
This commit is contained in:
parent
b31388d4fc
commit
2cc781c241
|
@ -126,7 +126,7 @@ static gboolean button_press_cb(VteTerminal *vte, GdkEventButton *event) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef URGENT_ON_BEEP
|
#ifdef URGENT_ON_BEEP
|
||||||
static void beep_handler(__attribute__((unused)) VteTerminal *vte, GtkWindow *window) {
|
static void beep_handler(GtkWindow *window) {
|
||||||
gtk_window_set_urgency_hint(window, TRUE);
|
gtk_window_set_urgency_hint(window, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -292,7 +292,7 @@ int main(int argc, char **argv) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef URGENT_ON_BEEP
|
#ifdef URGENT_ON_BEEP
|
||||||
g_signal_connect(vte, "beep", G_CALLBACK(beep_handler), window);
|
g_signal_connect_swapped(vte, "beep", G_CALLBACK(beep_handler), window);
|
||||||
g_signal_connect(window, "focus-in-event", G_CALLBACK(focus_in_handler), NULL);
|
g_signal_connect(window, "focus-in-event", G_CALLBACK(focus_in_handler), NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue