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 524364 - libglade -> gtkbuilder
libglade -> gtkbuilder
Status: RESOLVED FIXED
Product: gnome-media
Classification: Deprecated
Component: general
2.28.x
Other All
: Normal normal
: ---
Assigned To: gnome media maintainers
gnome media maintainers
Depends on:
Blocks: 101811 572883
 
 
Reported: 2008-03-25 19:31 UTC by Marc-Andre Lureau
Modified: 2010-01-17 13:42 UTC
See Also:
GNOME target: 2.30.x
GNOME version: ---


Attachments
gstreamer-properties migration (97.82 KB, patch)
2008-04-04 21:42 UTC, Juan Pizarro
none Details | Review
[1/1] glade->builder (100.56 KB, patch)
2008-04-05 13:36 UTC, Marc-Andre Lureau
none Details | Review
[PATCH] profiles builder (64.93 KB, patch)
2008-04-13 22:43 UTC, Marc-Andre Lureau
none Details | Review
update gst-properties patch (100.32 KB, patch)
2009-06-27 20:02 UTC, Felix Riemann
committed Details | Review
Bug 524364 – libglade -> gtkbuilder (profiles) (67.74 KB, patch)
2009-07-12 16:07 UTC, Marc-Andre Lureau
needs-work Details | Review
profiles: Bug 524364 - libglade -> gtkbuilder (66.38 KB, patch)
2010-01-16 22:03 UTC, Marc-Andre Lureau
rejected Details | Review
profiles: Bug 524364 - libglade -> gtkbuilder (68.69 KB, patch)
2010-01-16 22:30 UTC, Marc-Andre Lureau
committed Details | Review

Description Marc-Andre Lureau 2008-03-25 19:31:44 UTC
This is a needed migration too:

http://library.gnome.org/devel/gtk/2.11/gtk-migrating-GtkBuilder.html

Please leave a comment here if you plan to work on this (there has been already duplication of such migration with gio and gtkuimanager..)
Comment 1 Juan Pizarro 2008-04-04 21:42:51 UTC
Created attachment 108638 [details] [review]
gstreamer-properties migration
Comment 2 Marc-Andre Lureau 2008-04-04 22:39:52 UTC
(In reply to comment #1)
> Created an attachment (id=108638) [edit]
> gstreamer-properties migration
> 

Thanks a lot, I'll review it soon!!
Comment 3 Marc-Andre Lureau 2008-04-05 12:16:52 UTC
Looks good!

Patch updated with
- build dependency removed
- gtk version required 2.12
- error message updated
- install .ui file, and not .glade
- corrected path location and test file checking

We should keep glade file as long as bug 480678 is not fixed.

Do you have SVN account?
Comment 4 Marc-Andre Lureau 2008-04-05 12:17:39 UTC
bug 490678
Comment 5 Marc-Andre Lureau 2008-04-05 13:36:15 UTC
Created attachment 108668 [details] [review]
[1/1] glade->builder

 configure.in                                 |    2 +-
 gstreamer-properties/Makefile.am             |    8 +-
 gstreamer-properties/gstreamer-properties.c  |   35 +-
 gstreamer-properties/gstreamer-properties.ui | 1503 ++++++++++++++++++++++++++
 gstreamer-properties/pipeline-tests.c        |    9 +-
 gstreamer-properties/pipeline-tests.h        |    3 +-
 6 files changed, 1531 insertions(+), 29 deletions(-)
Comment 6 Marc-Andre Lureau 2008-04-13 22:43:58 UTC
Created attachment 109197 [details] [review]
[PATCH] profiles builder

 configure.in                                |   10 +-
 profiles/Makefile.am                        |   11 +-
 profiles/audio-profile-choose.c             |    1 -
 profiles/audio-profile-edit.c               |   41 ++-
 profiles/audio-profile-private.h            |   12 +-
 profiles/audio-profiles-edit.c              |   37 +-
 profiles/glade/Makefile.am                  |    4 +-
 profiles/glade/gnome-media-profiles-glade.c |   27 --
 profiles/gmp-util.c                         |   65 ++--
 profiles/gmp-util.h                         |    9 +-
 profiles/gnome-audio-profile-edit.ui        |  204 ++++++++++
 profiles/gnome-audio-profile-new.ui         |  195 ++++++++++
 profiles/gnome-audio-profiles-properties.c  |    8 +-
 profiles/gnome-audio-profiles.glade2        |  533 ---------------------------
 profiles/gnome-media-profiles.c             |   96 +++---
 profiles/gnome-media-profiles.pc.in         |    2 +-
 16 files changed, 540 insertions(+), 715 deletions(-)
Comment 7 André Klapper 2009-05-04 12:01:50 UTC
Marc-Andre: WIlling to commit your patches now that gnome-media has branched?
Comment 8 Marc-Andre Lureau 2009-05-04 12:55:07 UTC
It would be nice if someone else would take a look. I was planning to do it rather for next release. Although quite tempted to apply them right away.
Comment 9 Felix Riemann 2009-06-27 20:02:55 UTC
Created attachment 137474 [details] [review]
update gst-properties patch

This updates the patch for gst-properties (attachment 108668 [details] [review]) to apply against the current master branch. I needed this to be able to remove the deprecated GtkOptionMenu widgets (see bug 572353). This might depend on the gtk_timeout-patch from bug 572353 comment 10 .
Comment 10 Marc-Andre Lureau 2009-07-12 14:49:55 UTC
committed the gst-properties patch. Thanks Juan and Felix!


commit 3cb78d0505273b03965cd9654a32ffad18ac6da7
Author: Juan Pizarro <jpizarrom@gmail.com>
Date:   Sun Jul 12 17:03:53 2009 +0300

    Bug 524364 – libglade -> gtkbuilder (gst-properties)

    Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
    Signed-off-by: Felix Riemann <friemann@gnome.org>

Comment 11 Marc-Andre Lureau 2009-07-12 16:07:45 UTC
Created attachment 138280 [details] [review]
Bug 524364 – libglade -> gtkbuilder (profiles)
Comment 12 Marc-Andre Lureau 2009-07-12 16:15:45 UTC
I am a bit lost with the glade update part in patch
http://bugzilla.gnome.org/attachment.cgi?id=138280

Can we drop the glade catalog part?

Comment 13 André Klapper 2009-11-26 22:57:35 UTC
So how can we get some progress into this?
Marc-Andre, you need somebody reviewing this, right?
Comment 14 Bastien Nocera 2010-01-06 16:40:31 UTC
Review of attachment 137474 [details] [review]:

You patch should also remove the glade file(s).

::: gstreamer-properties/gstreamer-properties.c
@@ +40,3 @@
 #include "pipeline-tests.h"
 
+#define WID(s) gtk_builder_get_object (builder, s)

This probably needs to do GTK_WIDGET () as well, otherwise we'd get warnings.

::: gstreamer-properties/pipeline-tests.c
@@ +37,2 @@
 #include "pipeline-tests.h"
+#define WID(s) gtk_builder_get_object (builder, s)

Same as above.
Comment 15 Bastien Nocera 2010-01-06 16:44:42 UTC
Review of attachment 138280 [details] [review]:

I would be of the opinion that we should remove the Glade stuff for the selection widget altogether. It never had API stability promises.
Comment 16 Marc-Andre Lureau 2010-01-12 00:31:34 UTC
(In reply to comment #14)
> Review of attachment 137474 [details] [review]:
> 
> You patch should also remove the glade file(s).
> 

Sorry Bastien, this was committed in:

commit 3cb78d0505273b03965cd9654a32ffad18ac6da7
Author: Juan Pizarro <jpizarrom@gmail.com>
Date:   Sun Jul 12 17:03:53 2009 +0300

    Bug 524364 – libglade -> gtkbuilder (gst-properties)
    
    Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
    Signed-off-by: Felix Riemann <friemann@gnome.org>

 configure.ac                                    |    2 +-
 gstreamer-properties/Makefile.am                |    8 +-
 gstreamer-properties/gstreamer-properties.c     |   34 +-
 gstreamer-properties/gstreamer-properties.glade | 1590 -----------------------
 gstreamer-properties/gstreamer-properties.ui    | 1503 +++++++++++++++++++++
 gstreamer-properties/pipeline-tests.c           |    9 +-
 gstreamer-properties/pipeline-tests.h           |    3 +-

> +#define WID(s) gtk_builder_get_object (builder, s)
> 
> This probably needs to do GTK_WIDGET () as well, otherwise we'd get warnings.
> 

that seems correct, but I don't see the warnings :)
Comment 17 Marc-Andre Lureau 2010-01-12 00:39:22 UTC
(In reply to comment #15)
> Review of attachment 138280 [details] [review]:
> 
> I would be of the opinion that we should remove the Glade stuff for the
> selection widget altogether. It never had API stability promises.

I was afraid that sound-juicer might be using it, and that is actually the case...
 
                              <widget class="Custom" id="audio_profile">
                                <property name="visible">True</property>
                                <property name="can_focus">True</property>
                                <property name="creation_function">gm_audio_profile_choose_new</property>
                                <signal name="changed" handler="prefs_profile_changed"/>
                              </widget>
Comment 18 Marc-Andre Lureau 2010-01-16 22:03:02 UTC
Created attachment 151569 [details] [review]
profiles: Bug 524364 - libglade -> gtkbuilder

Finally remove glade from GNOME Media.

I figure out that the profiles/glade directory contain a glade plugin,
not for others to use in their own UI, but to be able to modify the
GNOME Media UI gnome-audio-profile-edit.ui itself.

This is quite important to have for now. However, A saner solution
would be to fill a regular dialog, thus avoiding a custom dialog and
its glade registration.
Comment 19 Marc-Andre Lureau 2010-01-16 22:30:49 UTC
Created attachment 151570 [details] [review]
profiles: Bug 524364 - libglade -> gtkbuilder

Finally remove glade from GNOME Media.

I figure out that the profiles/glade directory contain a glade plugin,
not for others to use in their own UI, but to be able to modify the
GNOME Media UI gnome-audio-profile-edit.ui itself.

This is quite important to have for now. However, A saner solution
would be to fill a regular dialog, thus avoiding a custom dialog and
its glade registration.
Comment 20 Marc-Andre Lureau 2010-01-16 22:35:46 UTC
yipiii!
Comment 21 Marc-Andre Lureau 2010-01-16 22:38:01 UTC
Comment on attachment 151569 [details] [review]
profiles: Bug 524364 - libglade -> gtkbuilder

wrong patch
Comment 22 André Klapper 2010-01-17 13:42:28 UTC
Congrats!