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 788272 - [PATCH] Remember active view type(icon/list)
[PATCH] Remember active view type(icon/list)
Status: RESOLVED FIXED
Product: bijiben
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Bijiben maintainer(s)
Bijiben maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-09-28 07:41 UTC by Jonathan Kang
Modified: 2017-12-11 13:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
main-view: Remember active view type (3.09 KB, patch)
2017-09-28 07:42 UTC, Jonathan Kang
none Details | Review
main-view: Remember active view type (2.61 KB, patch)
2017-11-21 09:08 UTC, Jonathan Kang
none Details | Review
main-view: Remember active view type (3.56 KB, patch)
2017-11-30 10:18 UTC, Jonathan Kang
none Details | Review
main-view: Remember active view type (3.58 KB, patch)
2017-12-05 02:16 UTC, Jonathan Kang
committed Details | Review

Description Jonathan Kang 2017-09-28 07:41:15 UTC
Currently the default view is icon view. If a user switch to list view, close
Bijiben and open it again, it'll switch back to the default icon view instead of
the active one when users close Bijiben.

It'll be nice if the active view type can be saved and loaded when bijiben
starts.
Comment 1 Jonathan Kang 2017-09-28 07:42:53 UTC
Created attachment 360578 [details] [review]
main-view: Remember active view type

Save the active view type and load it when bijiben starts, so
the user is presented with the last visible state of Bijiben when
he/she last used it.
Comment 2 Isaque Galdino 2017-11-14 00:44:56 UTC
Review of attachment 360578 [details] [review]:

Hi Jonathan, thanks for your patch, but it's using autotools and now we're using meson, so please update your patch.
I appreciate and I'm sorry for taking this long to review it!
Comment 3 Jonathan Kang 2017-11-21 09:08:21 UTC
Created attachment 364103 [details] [review]
main-view: Remember active view type

patch rebased.
Comment 4 Isaque Galdino 2017-11-29 15:58:10 UTC
Review of attachment 364103 [details] [review]:

Got an error when trying to install:
$ LANG=C sudo ninja install
...
Compile gsettings schemas...
/usr/local/share/glib-2.0/schemas/org.gnome.bijiben.gschema.xml:38:1  Error on line 38 char 1: <enum id='org.gnome.bijiben.GdMainViewType'> not (yet) defined..  This entire file has been ignored.
...
Comment 5 Jonathan Kang 2017-11-30 10:18:52 UTC
Created attachment 364656 [details] [review]
main-view: Remember active view type

Patch updated. Add needed build target in data/meson.build.
Comment 6 Isaque Galdino 2017-12-01 10:39:42 UTC
Review of attachment 364656 [details] [review]:

Still not good:
$ ninja
ninja: error: '../libgd/libgd/gd-main-view.h', needed by 'data/org.gnome.bijiben.enums.xml', missing and no known rule to make it
Comment 7 Jonathan Kang 2017-12-04 09:24:10 UTC
(In reply to Isaque Galdino from comment #6)
> Review of attachment 364656 [details] [review] [review]:
> 
> Still not good:
> $ ninja
> ninja: error: '../libgd/libgd/gd-main-view.h', needed by
> 'data/org.gnome.bijiben.enums.xml', missing and no known rule to make it

Could you please show me your steps to build bijiben? Everything works well
here. Both using
> jhbuild buildone -n bijiben (I've changed jhbuild source code to use meson)
and 
> mkdir builddir && meson builddir && cd builddir && ninja
Comment 8 Isaque Galdino 2017-12-04 18:08:04 UTC
You might have old files in your setup. This is the correct file path:
-  input: '../libgd/libgd/gd-main-view.h',
+  input: '../subprojects/libgd/libgd/gd-main-view.h',

Thanks.
Comment 9 Jonathan Kang 2017-12-05 02:16:06 UTC
Created attachment 364983 [details] [review]
main-view: Remember active view type

(In reply to Isaque Galdino from comment #8)
> You might have old files in your setup. This is the correct file path:
> -  input: '../libgd/libgd/gd-main-view.h',
> +  input: '../subprojects/libgd/libgd/gd-main-view.h',
> 
Ah, I forgot to delete the old libgd directory. It should work this time.
Comment 10 Isaque Galdino 2017-12-11 13:50:22 UTC
Review of attachment 364983 [details] [review]:

Thanks for you patch!