Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mix up GTK+ wizard layout a bit #539

Merged
merged 8 commits into from Nov 29, 2018
Merged

Mix up GTK+ wizard layout a bit #539

merged 8 commits into from Nov 29, 2018

Conversation

ernestask
Copy link
Collaborator

Smallest possible window size before:

screenshot from 2018-11-07 12-32-48

Smallest possible window size after:

screenshot from 2018-11-07 12-33-02

This is sort of a spin-off of #538, but also redoes the layout a tad, which may or may not be a big no-no, as it is for desktop applications. Additionally, it adds a scrolled window to the entire page, as opposed to the text view only, which would be quite nice with wrapping enabled on the warning labels, but then we still hit the weird underallocation issues and get text overlapping the revealer. Oh, and word-wrapping for lines in the log text view, to avoid infinite horizontal scrolling.

@abrt-bot
Copy link

abrt-bot commented Nov 7, 2018

Can one of the admins verify this patch?

@mkutlak
Copy link
Contributor

mkutlak commented Nov 7, 2018

@trapas test this please

@xsuchy
Copy link
Member

xsuchy commented Nov 8, 2018

I like the new layout.

@mkutlak
Copy link
Contributor

mkutlak commented Nov 14, 2018

@ernestask will you be making any changes to the code? Because WIP = Work In Progress.

@ernestask ernestask changed the title WIP: Mix up GTK+ wizard layout a bit Mix up GTK+ wizard layout a bit Nov 14, 2018
@ernestask
Copy link
Collaborator Author

@ernestask will you be making any changes to the code? Because WIP = Work In Progress.

No, I just tacked it on as a way to gather input first.

@mkutlak
Copy link
Contributor

mkutlak commented Nov 19, 2018

IMO all warnings should be shown in one area (e.g. above the Show log just like in your picture).

But right now some warnings are shown below the Show log and others above it.

warning_placing

Glade also reports some deprecated warnings:

[page_4:cb_approve_bt] Property 'Horizontal alignment for child' of object class 'Button' is deprecated
[page_4:table1:lbl_size] Property 'Left attachment' of object class 'Table' is deprecated
[page_4:table1:lbl_size] Property 'Right attachment' of object class 'Table' is deprecated
[page_4:table1:lbl_size] Property 'Vertical options' of object class 'Table' is deprecated
[page_4:table1:label4] Property 'Horizontal options' of object class 'Table' is deprecated
[page_4:table1:label4] Property 'Vertical options' of object class 'Table' is deprecated
[page_4:table1] Object class 'Table' from gtk+ 3.20 is deprecated
[page_4:table1] Property 'Columns' of object class 'Table' is deprecated
[page_4:table1] Property 'Column spacing' of object class 'Table' is deprecated
[page_2:vb_simple_details:cb_no_comment] Property 'Horizontal alignment for child' of object class 'Button' is deprecated
[page_3:paned1:expander_search:box7:box8:rb_custom_search] Property 'Horizontal alignment for child' of object class 'Button' is deprecated
[page_3:paned1:expander_search:box7:box8:rb_forbidden_words] Property 'Horizontal alignment for child' of object class 'Button' is deprecated

It would be great if you could fix them aswell.

@ernestask
Copy link
Collaborator Author

IMO all warnings should be shown in one area (e.g. above the Show log just like in your picture).
But right now some warnings are shown below the Show log and others above it.

For sure, will look into that.

Glade also reports some deprecated warnings:

It would be great if you could fix them aswell.

All right. I usually write these by hand, hence me not noticing.

@ernestask
Copy link
Collaborator Author

Don’t see anything more spit out by Glade.

@ernestask
Copy link
Collaborator Author

The window should no longer expand after maximizing and restoring.

They’re never used in the code, and don’t make sense if their children
are being used as GtkNotebook tabs. Moreover, Glade can display plain
boxes just fine.

Signed-off-by: Ernestas Kulik <ekulik@redhat.com>
The oriented variants of GtkBox have been deprecated since GTK+ 3.2, and
can simply be replaced with GtkBox with optionally-set
GtkOrientable:orientation.

Signed-off-by: Ernestas Kulik <ekulik@redhat.com>
Signed-off-by: Ernestas Kulik <ekulik@redhat.com>
Currently, the wizard window has a separate box for warnings and action
buttons. Given that the warning labels are generally fairly long, they
can make the window abnormally large (in conjunction with the
homogeneity of GtkNotebook tabs). That can be fixed by showing the
warnings on the reporting progress page inline, although that introduces
a layout change and inconsistency with other pages.

Another issue with the warning labels pertains to their wrapping.
Initially, they seem to be slightly underallocated, which results in
them overlapping other widgets. That can be worked around by using
ellipsization instead. However, a text view might work better, as
non-default fonts and their sizes (also some a11y settings) may increase
the minimum size of the window at which the labels will be fully
readable.

https://bugzilla.redhat.com/show_bug.cgi?id=1220158
https://bugzilla.redhat.com/show_bug.cgi?id=1327813

Fixes abrt/abrt#1303

Signed-off-by: Ernestas Kulik <ekulik@redhat.com>
A simple GtkBox will suffice here, plus, GtkTable is deprecated as of
GTK+ 3.4: https://developer.gnome.org/gtk3/3.4/GtkTable.html#gtk-table-new

Signed-off-by: Ernestas Kulik <ekulik@redhat.com>
These particular check buttons are not expanded, which makes xalign have no
effect on the children (labels).

Signed-off-by: Ernestas Kulik <ekulik@redhat.com>
GtkStack was introduced with that version.

Signed-off-by: Ernestas Kulik <ekulik@redhat.com>
get_event_config() can cause a segfault if NULL is passed to it, since
GHashTable tries to hash the pointer as a string.

Reproducible just by switching to the “Confirm data to report” tab
manually.

Signed-off-by: Ernestas Kulik <ekulik@redhat.com>
@ernestask
Copy link
Collaborator Author

Updated.

@mkutlak
Copy link
Contributor

mkutlak commented Nov 29, 2018

LGTM. Thank you @ernestask !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants