summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzabolcs Ban <bansz@src.gnome.org>2000-10-06 14:58:44 +0000
committerSzabolcs Ban <bansz@src.gnome.org>2000-10-06 14:58:44 +0000
commitcca9b6a8fcc44e2279bc3e62b20ec8ee89c19670 (patch)
treedce54f20f7c6808dc936e1003bbb49e8dcd00925
parent4e730aadf7fbc8cabbf8081447b5c138d386a3f4 (diff)
gkb.c: Added error handling :))GKB_unstable
-rw-r--r--gkb-new/ChangeLog4
-rw-r--r--gkb-new/gkb.c3
2 files changed, 6 insertions, 1 deletions
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 <shooby@gnome.hu>
+
+ * gkb.c: Added error handling :)
+
2000-08-16 Alexander Kirillov <kirillov@math.sunysb.edu>
* 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