From cca9b6a8fcc44e2279bc3e62b20ec8ee89c19670 Mon Sep 17 00:00:00 2001 From: Szabolcs Ban Date: Fri, 6 Oct 2000 14:58:44 +0000 Subject: gkb.c: Added error handling :)) --- gkb-new/ChangeLog | 4 ++++ gkb-new/gkb.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gkb-new/ChangeLog b/gkb-new/ChangeLog index 9eaa4d338..1854a7366 100644 --- a/gkb-new/ChangeLog +++ b/gkb-new/ChangeLog @@ -1,3 +1,7 @@ +2000-08-16 Szabolcs BAN + + * gkb.c: Added error handling :) + 2000-08-16 Alexander Kirillov * docs/C/gkb.sgml: updated; added section "technical info" diff --git a/gkb-new/gkb.c b/gkb-new/gkb.c index ae108d1ca..f4802b2cf 100644 --- a/gkb-new/gkb.c +++ b/gkb-new/gkb.c @@ -253,7 +253,8 @@ gkb_button_press_event_cb (GtkWidget * widget, } gkb_draw (gkb); - system (gkb->dact->command); + if (system (gkb->dact->command)) + gnome_error_dialog(_("The keymap switching command returned with error!")); } static int -- cgit v1.2.3