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 620845 - [GtkBuilder transition] viewer_preferences
[GtkBuilder transition] viewer_preferences
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: General
GIT
Other Linux
: Normal enhancement
: 0.7.1
Assigned To: Trevor
F-spot maintainers
Depends on:
Blocks: f-spot-glade 620839
 
 
Reported: 2010-06-07 14:09 UTC by Ruben Vermeersch
Modified: 2010-06-22 20:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
viewer preferences libglade to GtkBuilder transition patch (29.12 KB, patch)
2010-06-14 12:37 UTC, Trevor
needs-work Details | Review
viewer preferences libglade to GtkBuilder transition patch (28.94 KB, patch)
2010-06-22 18:54 UTC, Trevor
committed Details | Review

Description Ruben Vermeersch 2010-06-07 14:09:34 UTC
The viewer_preferences needs to be migrated to GtkBuilder.
Comment 1 Ruben Vermeersch 2010-06-07 15:21:41 UTC
Instructions on how to fix this can be found here:
http://f-spot.org/GtkBuilder_Transition

Please indicate below if you are working on this (and if you stopped working on it), so we can avoid duplicate work. If you are stuck, just ask for help on IRC or the mailing list.
Comment 2 Trevor 2010-06-14 12:37:18 UTC
Created attachment 163581 [details] [review]
viewer preferences libglade to GtkBuilder transition patch

My first attempt at a patch :)
Comment 3 Ruben Vermeersch 2010-06-14 12:49:27 UTC
Great, I will review it very soon (currently preparing the 0.7.0 release), but at first sight it looks good!
Comment 4 Ruben Vermeersch 2010-06-18 18:17:11 UTC
Review of attachment 163581 [details] [review]:

Good patch, but there's something wrong in your .ui file (see below).

Could you change this?

In case you don't know the right git steps:
1) git pull --rebase
2) fix any conflicts etc.
3) save the viewer_preferences.ui as a GtkBuilder file
4) git commit --amend src/ui/viewer_preferences.ui
5) re-attach the patch to the bug (format with git format-patch)

The --amend trick ensures that your changes to the .ui file are combined with the current latest revision (which should be your patch, as it is rewinded on top of the upstream work by calling git pull --rebase).

::: src/ui/viewer_preferences.ui
@@ +1,2 @@
+<?xml version="1.0"?>
+<glade-interface>

This looks like a Glade file rather than a GtkBuilder file. Please make sure you save as a GtkBuilder file.
Comment 5 Trevor 2010-06-22 18:54:13 UTC
Created attachment 164333 [details] [review]
viewer preferences libglade to GtkBuilder transition patch

I managed to mess up my local copy of the f-spot repository pretty badly.  Attempting to fix it confused me quite a bit, git is far more complex than I had thought.

I ended up using git clone to create another local repository, applying the patch I had made before, then making the changes to the viewer_preferences.ui file.

Rather roundabout, but I think this is essentially what you were asking for.
Comment 6 Ruben Vermeersch 2010-06-22 20:18:30 UTC
Yes indeed, great work! Merged into git master!

Git can indeed be a bit confusing. This is a good read though: http://ftp.newartisans.com/pub/git.from.bottom.up.pdf Made a lot of things clear for me.