After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 690623 - Port to GtkFlowBox
Port to GtkFlowBox
Status: RESOLVED FIXED
Product: gnome-photos
Classification: Applications
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: GNOME photos maintainer(s)
GNOME photos maintainer(s)
: 756778 (view as bug list)
Depends on: 770157 770342 774191 774914 775562 775754 779074
Blocks:
 
 
Reported: 2012-12-21 18:54 UTC by William Jon McCann
Modified: 2017-03-22 19:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (564.62 KB, image/png)
2012-12-21 21:24 UTC, William Jon McCann
  Details
Update to latest libgd (916 bytes, patch)
2016-12-08 17:53 UTC, Debarshi Ray
none Details | Review
base-item: Implement GdMainBoxItem (8.00 KB, patch)
2016-12-08 17:53 UTC, Debarshi Ray
none Details | Review
Port to GdMainBox (9.32 KB, patch)
2016-12-08 17:53 UTC, Debarshi Ray
none Details | Review
Update to latest libgd (916 bytes, patch)
2016-12-11 14:52 UTC, Debarshi Ray
none Details | Review
base-item: Implement GdMainBoxItem (8.16 KB, patch)
2016-12-11 14:53 UTC, Debarshi Ray
committed Details | Review
Port to GdMainBox (10.50 KB, patch)
2016-12-11 14:53 UTC, Debarshi Ray
none Details | Review
Move the code to update the OffsetControllers' count (7.44 KB, patch)
2017-01-11 09:36 UTC, Debarshi Ray
committed Details | Review
item-manager: Shuffle some code around (10.82 KB, patch)
2017-01-12 14:21 UTC, Debarshi Ray
committed Details | Review
item-manager: Add mechanism for constraining item additions (11.62 KB, patch)
2017-01-12 14:21 UTC, Debarshi Ray
committed Details | Review
tracker-controller, view-model: Move policy to constrain item additions (6.50 KB, patch)
2017-01-12 14:21 UTC, Debarshi Ray
committed Details | Review
item-manager: Style fix (1.33 KB, patch)
2017-01-12 14:21 UTC, Debarshi Ray
committed Details | Review
Port to GdMainBox (13.75 KB, patch)
2017-01-12 15:05 UTC, Debarshi Ray
committed Details | Review
Update to latest libgd (1.16 KB, patch)
2017-01-12 15:09 UTC, Debarshi Ray
committed Details | Review
Remove unused file (11.28 KB, patch)
2017-01-15 11:46 UTC, Alessandro Bono
committed Details | Review

Description William Jon McCann 2012-12-21 18:54:37 UTC
In the photo overview (icon view) there is twice as much space between photos as there is between the photos and the edge of the view.

I think they should be equal.
Comment 1 Debarshi Ray 2012-12-21 19:53:17 UTC
The ability to adapt the spacing between the columns as the window size changes, like a flowing layout, looks related to bug 460044 Or am I missing something?

I recently changed the default size of the window to 960x600 (org.gnome.photos window-size):
http://git.gnome.org/browse/gnome-photos/commit/?id=7f5d856fa3260fa0d2e0b7ce94d0c872279714a2
Comment 2 William Jon McCann 2012-12-21 21:24:57 UTC
Created attachment 232095 [details]
screenshot
Comment 3 Debarshi Ray 2013-04-14 23:55:03 UTC
We need EggFlowBox for this.
Comment 4 Michael Heyns 2013-11-14 00:36:08 UTC
I have a lot of blank space inbetween elements, especially on the right. (Is the grid left aligned by default?)

I'm not a developer but would a responsive grid not be possible? Maximizing horizontal window space usage.
Comment 5 Debarshi Ray 2013-11-14 10:20:30 UTC
(In reply to comment #4)
> I have a lot of blank space inbetween elements, especially on the right. (Is
> the grid left aligned by default?)

That is just how GtkIconView behaves.

> I'm not a developer but would a responsive grid not be possible? Maximizing
> horizontal window space usage.

Yes, we need to use GtkFlowBox as a replacement.
Comment 6 ankita sinha 2014-12-18 06:10:58 UTC
i am interested in taking this up.Will i have to replace the complete GtkIconView code with that of GtkFlowBok?
Comment 7 Debarshi Ray 2016-09-09 13:43:54 UTC
The changes in bug 770342 has reduced our dependence on GtkTreeModel. It should help with this.
Comment 8 Debarshi Ray 2016-12-08 17:53:24 UTC
Created attachment 341638 [details] [review]
Update to latest libgd
Comment 9 Debarshi Ray 2016-12-08 17:53:37 UTC
Created attachment 341639 [details] [review]
base-item: Implement GdMainBoxItem
Comment 10 Debarshi Ray 2016-12-08 17:53:55 UTC
Created attachment 341640 [details] [review]
Port to GdMainBox
Comment 11 Debarshi Ray 2016-12-11 14:52:51 UTC
Created attachment 341750 [details] [review]
Update to latest libgd
Comment 12 Debarshi Ray 2016-12-11 14:53:08 UTC
Created attachment 341751 [details] [review]
base-item: Implement GdMainBoxItem
Comment 13 Debarshi Ray 2016-12-11 14:53:26 UTC
Created attachment 341752 [details] [review]
Port to GdMainBox
Comment 14 Debarshi Ray 2017-01-11 09:36:17 UTC
Created attachment 343288 [details] [review]
Move the code to update the OffsetControllers' count
Comment 15 Debarshi Ray 2017-01-12 14:21:16 UTC
Created attachment 343362 [details] [review]
item-manager: Shuffle some code around
Comment 16 Debarshi Ray 2017-01-12 14:21:31 UTC
Created attachment 343363 [details] [review]
item-manager: Add mechanism for constraining item additions
Comment 17 Debarshi Ray 2017-01-12 14:21:46 UTC
Created attachment 343364 [details] [review]
tracker-controller, view-model: Move policy to constrain item additions
Comment 18 Debarshi Ray 2017-01-12 14:21:59 UTC
Created attachment 343365 [details] [review]
item-manager: Style fix
Comment 19 Debarshi Ray 2017-01-12 15:05:44 UTC
Created attachment 343373 [details] [review]
Port to GdMainBox
Comment 20 Debarshi Ray 2017-01-12 15:09:53 UTC
Created attachment 343374 [details] [review]
Update to latest libgd

Need to bump the GTK+ requirement for new GtkFlowBox API.
Comment 21 Alessandro Bono 2017-01-15 11:46:32 UTC
Created attachment 343497 [details] [review]
Remove unused file

Fallout from commit 528c556318248bb4e420d012ee14aabcd14dde71
Comment 22 Debarshi Ray 2017-01-16 08:25:24 UTC
Review of attachment 343497 [details] [review]:

Good catch! It got dropped from the commit due to a conflict when I was rebasing the patches. I should have been more careful.
Comment 23 Alessandro Bono 2017-01-16 10:13:33 UTC
Comment on attachment 343497 [details] [review]
Remove unused file

Attachment 343497 [details] pushed as 12613d3 - Remove unused file
Comment 24 Debarshi Ray 2017-03-22 19:25:14 UTC
*** Bug 756778 has been marked as a duplicate of this bug. ***