-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Make sure attachments window fills entire sidebar #476
Conversation
Hi, long time ago that i've seen you :) |
shell/ev-sidebar-attachments.c
Outdated
@@ -565,6 +565,7 @@ ev_sidebar_attachments_init (EvSidebarAttachments *ev_attachbar) | |||
gtk_container_add (GTK_CONTAINER (swindow), | |||
ev_attachbar->priv->icon_view); | |||
|
|||
gtk_box_pack_start (GTK_BOX (ev_attachbar), swindow, TRUE, TRUE, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you fix the indent please?
Sadly, the code uses tabs here (not our code-style), but you should do the same for one new line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, updated my tree, changed the spaces to tabs!
Attachments sidebar looks much better now. So only code-formatting needs to be fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
A new warning message floods the system logs after merging this commit:
|
Confirmed, should i revert the commit? |
if gtk_box_pack_start is used then gtk_container_add can be removed. diff --git a/shell/ev-sidebar-attachments.c b/shell/ev-sidebar-attachments.c
index 389d169..2bcaedb 100644
--- a/shell/ev-sidebar-attachments.c
+++ b/shell/ev-sidebar-attachments.c
@@ -566,8 +566,10 @@ ev_sidebar_attachments_init (EvSidebarAttachments *ev_attachbar)
ev_attachbar->priv->icon_view);
gtk_box_pack_start (GTK_BOX (ev_attachbar), swindow, TRUE, TRUE, 0);
+/*
gtk_container_add (GTK_CONTAINER (ev_attachbar),
swindow);
+*/
gtk_widget_show_all (GTK_WIDGET (ev_attachbar));
/* Icon Theme */ test
|
Fixes a runtime warning caused by 70f42da See #476 (comment) for more info.
PR #487 |
Fixes a runtime warning caused by 70f42da See #476 (comment) for more info.
Fixes a runtime warning caused by 70f42da See #476 (comment) for more info.
When looking at a document that has attachments, the attachment window only opens up a very small portion of the sidebar up at the top. Looking at the source code for another document viewer from another project cough evince cough I found you needed to have a call to gtk_box_pack_start () in order to have it fill out the sidebar. Here's a pull request that fixes the issue. Tested on Debian 10, works.