gui: make preferences dialogue modal for parents

Resolves rhbz#1120879

Signed-off-by: Jakub Filak <jfilak@redhat.com>
gui: select the first in the configuration list

Resolves rhbz#1120881

Signed-off-by: Jakub Filak <jfilak@redhat.com>
gui: wrap lines for human readable files

Wrap lines for comment and reason files.

Do not wrap lines for maps, backtrace, environ and ... becuase
these files are something like lists consiting from lines.

Resolves rhbz#1120871

Signed-off-by: Jakub Filak <jfilak@redhat.com>
wizard: fix help text for screencasting

Related to rhbz#1120870

Signed-off-by: Jakub Filak <jfilak@redhat.com>
gui: support Enter & 2Click in Preferences list

Related to rhbz#1067123

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>
gui: close ask dialogues on Enter key

Related to rhbz#1067123

Signed-off-by: Jakub Filak <jfilak@redhat.com>
logging: test log level at first step

Return from the logger immediately if message's log level is not
sufficient to write it to the log.

This patch is a workaround for rhbz#1122690 where we try to log a
'post'ed string which has 18MB of size. It is not worth to try to fix it
properly. We do not log such a big amount of data in non-debug mode, we
need to have the logging extremely fast and we can live with crashes in
debug mode.

Signed-off-by: Jakub Filak <jfilak@redhat.com>
Merge pull request #269 from abrt/rhbz1122690_log_mode

logging: test log level at first step
json: include json.h accordingly to json-c CFLAGS

We use $(pkg-config --cflags json-c) but we include <json/json.h>. The
proper way to include the json-c header is to include <json.h>.

That absolute include causes errors while compiling with json-c-0.12
where the base include directory was changed  to "json-c".

https://github.com/json-c/json-c/blob/master/ChangeLog

Signed-off-by: Jakub Filak <jfilak@redhat.com>
ureport: include json.h accordingly to json-c CFLAGS

commit 1cef1ddc28f327534cfdb433d1f2e10d01b10f44

Signed-off-by: Jakub Filak <jfilak@redhat.com>
gui: port to gtk-3.13

Signed-off-by: Jakub Filak <jfilak@redhat.com>
gui: fix build errors introduced in the previous commit

Fixes commit 8190657d9fb808277f29e5535983a0a1f55badcf

Signed-off-by: Jakub Filak <jfilak@redhat.com>
gui: generate the glade file with glade-3.18

No code changes.

Signed-off-by: Jakub Filak <jfilak@redhat.com>
gui: simplify the event selector page

Signed-off-by: Jakub Filak <jfilak@redhat.com>
gui: conver report-gtk to GtkApplication

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

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>