summaryrefslogtreecommitdiffstats
path: root/src/gtk-helpers/event_config_dialog.c
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2011-06-01 17:57:31 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2011-06-01 17:57:31 +0200
commit2fa751f6d98995e73db4d0edd0d22b9560281644 (patch)
treecc5ed9575493d38d19db783324d329d2e43fe94d /src/gtk-helpers/event_config_dialog.c
parentf4e4a76f3ca70f0bad636e324c43d3da993df854 (diff)
downloadabrt-2fa751f6d98995e73db4d0edd0d22b9560281644.tar.gz
abrt-2fa751f6d98995e73db4d0edd0d22b9560281644.tar.xz
abrt-2fa751f6d98995e73db4d0edd0d22b9560281644.zip
wizard: hook selection checkboxes to reporters.
Checkboxes are controlled by the following elements in .xml: <requires-items> ITEM1,ITEM2 </requires-items> <exclude-items-by-default> ITEM1,ITEM2 </exclude-items-by-default> <exclude-items-always> ITEM1,ITEM2 </exclude-items-always> <exclude-binary-items> yes / no </exclude-binary-items> <include-items-by-default> ITEM1,ITEM2 </include-items-by-default> exclude-items-by-default and exclude-items-always can be "*" meaning "all". include-items-by-default specifies which items are included (checked) is exclude-items-by-default is "*". Else, all are checked by default. the set of iters NOT included is passed in $EXCLUDE_FROM_REPORT variable. bugzilla, kerneloops, mailx, print and rhtsupport are made aware of this variable. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/gtk-helpers/event_config_dialog.c')
-rw-r--r--src/gtk-helpers/event_config_dialog.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gtk-helpers/event_config_dialog.c b/src/gtk-helpers/event_config_dialog.c
index 5010e31c..769dbf6d 100644
--- a/src/gtk-helpers/event_config_dialog.c
+++ b/src/gtk-helpers/event_config_dialog.c
@@ -420,7 +420,7 @@ void show_events_list_dialog(GtkWindow *parent)
gtk_widget_show_all(event_list_window);
}
-void show_event_opt_error_dialog(const char *event_name)
+static void show_event_opt_error_dialog(const char *event_name)
{
event_config_t *ec = get_event_config(event_name);
char *message = xasprintf(_("Wrong settings detected for %s, "
@@ -445,6 +445,8 @@ void show_event_opt_error_dialog(const char *event_name)
gtk_widget_destroy(wrong_settings);
}
+//TODO: move this code to its only callsite?
+// (in which case, move show_event_opt_error_dialog and g_parent_window too)
void g_validate_event(const char* event_name)
{
GHashTable *errors = validate_event(event_name);