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 519634 - Use gtk builder i.s.o. glade
Use gtk builder i.s.o. glade
Status: RESOLVED FIXED
Product: gnome-user-share
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-user-share maintainers
gnome-user-share maintainers
Depends on:
Blocks: 572883
 
 
Reported: 2008-02-29 21:51 UTC by Jaap A. Haitsma
Modified: 2008-03-08 16:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (32.76 KB, patch)
2008-02-29 21:51 UTC, Jaap A. Haitsma
none Details | Review
Updated patch generating ui file out of glade file (7.81 KB, patch)
2008-02-29 22:36 UTC, Jaap A. Haitsma
needs-work Details | Review
Patch with the idea proposed in previous comment (33.40 KB, patch)
2008-03-01 09:20 UTC, Jaap A. Haitsma
rejected Details | Review
Generate the ui file like requested. (7.64 KB, patch)
2008-03-01 16:05 UTC, Jaap A. Haitsma
needs-work Details | Review
Updated patch. Checking for gtk-builder-convert in configure.in (7.97 KB, patch)
2008-03-08 14:14 UTC, Jaap A. Haitsma
committed Details | Review

Description Jaap A. Haitsma 2008-02-29 21:51:06 UTC
Patch coming up
Comment 1 Jaap A. Haitsma 2008-02-29 21:51:43 UTC
Created attachment 106301 [details] [review]
Patch

Permission to apply?
Comment 2 Bastien Nocera 2008-02-29 21:56:19 UTC
Not making the same mistake twice. There's still no GtkBuilder editor, so no.
Comment 3 Bastien Nocera 2008-02-29 21:58:03 UTC
I'll add that if you integrate the gtk-builder-convert in the Makefiles, I'm happy to get this patch in. I just don't want to have to edit .ui files by hand.
Comment 4 Jaap A. Haitsma 2008-02-29 22:36:05 UTC
Created attachment 106303 [details] [review]
Updated patch generating ui file out of glade file

Only minor issue is that with "make dist" the .ui file also ends up in the tarball. Not really a big issue but I don't know how to make sure to not get it in.

I think you are referring to totem having builder files. Why didn't you keep the glade files around in SVN?
Comment 5 Bastien Nocera 2008-03-01 02:52:23 UTC
You also need to add data/file-share-properties.glade to the POTFILES.skip (try intltool-update -M in po/ and remove the warnings).

As for file-share-properties.glade not going away, try DISTCLEANFILES = ...
Comment 6 Bastien Nocera 2008-03-01 02:53:27 UTC
(In reply to comment #4)
> Created an attachment (id=106303) [edit]
<snip>
> I think you are referring to totem having builder files. Why didn't you keep
> the glade files around in SVN?

We came in too early, and you had to do changes by hand after running the script. They're still in SVN for reference though.
Comment 7 Jaap A. Haitsma 2008-03-01 09:19:11 UTC
(In reply to comment #5)
> You also need to add data/file-share-properties.glade to the POTFILES.skip (try
> intltool-update -M in po/ and remove the warnings).

Done

> As for file-share-properties.glade not going away, try DISTCLEANFILES = ...
> 

I wanted file-share-properties.ui to go away

I feel that the approach we're taking is not the best one.
1) We're having file-share-properties.ui in POTFILES.in, but file-share-properties.ui doesn't exist in SVN
2) If someone add gtkbuilder support to glade or gazpacho we need to change make files again.

So I propose to have the glade file and the ui file in svn. Only disadvantage is that you have to run gtk-builder-convert manually when you edit the glade file. This is in my opinion a small price to pay. Furthermore when glade and gazapacho support gtkbuilder files we simply need to remove the glade file

Comment 8 Jaap A. Haitsma 2008-03-01 09:20:13 UTC
Created attachment 106319 [details] [review]
Patch with the idea proposed in previous comment
Comment 9 Bastien Nocera 2008-03-01 12:57:20 UTC
No, I want people's changes to the .ui to be lost for now. Either that, or just wait for an editor to get GtkBuilder support.
Comment 10 Jaap A. Haitsma 2008-03-01 16:05:53 UTC
Created attachment 106333 [details] [review]
Generate the ui file like requested. 

Everything including translations is now still based on the glade file. The gtkbuilder file gets generated when running make.
Comment 11 Bastien Nocera 2008-03-08 02:15:31 UTC
Please detect gtk-builder-convert in configure.in using AC_PROG_PATH(), and it should be ready to commit.
Comment 12 Jaap A. Haitsma 2008-03-08 14:14:43 UTC
Created attachment 106844 [details] [review]
Updated patch. Checking for gtk-builder-convert in configure.in
Comment 13 Bastien Nocera 2008-03-08 14:43:52 UTC
I believe you can remove that line:
+AC_SUBST(GTK_BUILDER_CONVERT)

Rest looks good to commit. Thanks.
Comment 14 Jaap A. Haitsma 2008-03-08 16:50:37 UTC
2008-03-08  Jaap Haitsma  <jaap@haitsma.org>

	* configure.in:
	* data/Makefile.am:
	* src/file-share-properties.c: (flush_password), (update_ui),
	(main):
	Move from libglade to gtkbuilder. Fixes bug #519634