spec: byte-compile py files with rpm scripts

automake installs byte-compiled files but those files are generated with
a single version of python (system's python).

python3 files needs to be byte-compiled with python3 and python2 files
with python2.

rpm scripts can do this work.

Signed-off-by: Jakub Filak <jfilak@redhat.com>
report-gtk: confirm the ask dialogs on 'Enter'

This commit adds a convinient way of closing an ask dialog. If user
enters some text, hitting 'Enter' key closes the dialog. Closing the
dialog with empty input text is not allowed because it is simmilar to
clicking 'Cancel' button.

Related to rhbz#1067123

Signed-off-by: Jakub Filak <jfilak@redhat.com>
testsuite: check return value of setlocale()

If setlocale() fails to set the desired locale value, the test results
look like a bug appeared in libreport.

Related to rhbz#1070892

Signed-off-by: Jakub Filak <jfilak@redhat.com>
include 'package' in AVC bugzilla bug reports

Resolves rhbz#1075452

Signed-off-by: Jakub Filak <jfilak@redhat.com>
localization: fix gettext

https://www.gnu.org/software/gettext/manual/html_node/Libraries.html

Resolves to rhbz#1087861

Signed-off-by: Jakub Filak <jfilak@redhat.com>
wizard: introduce the searched words list

Replace the navigation arrows by a list consisting of lines containing
the searched words.

Resolves rhbz#1069917

Conflicts:
	src/gui-wizard-gtk/wizard.glade
wizard: use a tab for Advanced opts instead of an expander

GtkExpander containing wrapped labels  breaks GTK3's algorithm computing
the window size when expanding/folding.

A tab page seems to be more modern approach which does not causes any
problems.

The tab pages are filled with GtkScrolledWindow in order to prevent
enlarging the configuration window behind screen limits.

The worfklow window also uses tab pages but on the left side because
two vertical tab page lines are strange.

Resolves rhbz#965963

Signed-off-by: Jakub Filak <jfilak@redhat.com>
gui: apply configuration dialogues changes on Enter key

Related to rhbz#1067123

Signed-off-by: Jakub Filak <jfilak@redhat.com>

Conflicts:
	src/gtk-helpers/event_config_dialog.c
	src/gtk-helpers/workflow_config_dialog.c
gui: close ask dialogues on Enter key

Related to rhbz#1067123

Signed-off-by: Jakub Filak <jfilak@redhat.com>

Conflicts:
	src/gui-wizard-gtk/wizard.c
gui: conver report-gtk to GtkApplication

- improves compatibility with GNOME
- allows us to move "Preferences" to the application menu

Related to rhbz#1069917

Signed-off-by: Jakub Filak <jfilak@redhat.com>
gui: clear the sensitive cache between two event runs

Was causing a SIGSEGV.

Related to rhbz#1069917

Signed-off-by: Jakub Filak <jfilak@redhat.com>
gui: don't remove already removed GTimeoutSource

Was causing a GLib warning

Related to rhbz#1069917

Signed-off-by: Jakub Filak <jfilak@redhat.com>
gui: reload destroyed sensitive data warn widgets from the galde

clear_warnings() destroys the warning widgets. The sensitive data
widgets needs to be reloaded as GtkBuilder does not return clones of
object but the instances from its cache.

Related to rhbz#1069917

Signed-off-by: Jakub Filak <jfilak@redhat.com>
gui: add "Repeat" button

If an event run fails, the button allows users to modify the
configuration and re-run the event.

v2:
- add a help text explaining what to do before clicking "Repeat" button

Related to rhbz#1069917

Signed-off-by: Jakub Filak <jfilak@redhat.com>

Conflicts:
	src/gui-wizard-gtk/wizard.c
wizard: terminate event chain after the emergency analysis

Resolves rhbz#1133549
Related to rhbz#1069917

Signed-off-by: Jakub Filak <jfilak@redhat.com>
wizard: don't work with destroyed widgets

Related to rhbz#1069917

Signed-off-by: Jakub Filak <jfilak@redhat.com>

Conflicts:
	src/gui-wizard-gtk/wizard.c
report: parse release/version from os-release

Related to rhbz#1101240

Signed-off-by: Jakub Filak <jfilak@redhat.com>
testsuite: report python sanity tests

Signed-off-by: Jakub Filak <jfilak@redhat.com>
testsuite: work around the issue with 'report-python'

Signed-off-by: Jakub Filak <jfilak@redhat.com>

Conflicts:
	src/report-python/__init__.py
testsuite: add test not-reportable

Testing make_description to print not-reportable.