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 580425 - Remove deprecated libgnome dependency
Remove deprecated libgnome dependency
Status: RESOLVED FIXED
Product: yelp
Classification: Applications
Component: General
2.26.x
Other Linux
: Normal normal
: ---
Assigned To: Yelp maintainers
Yelp maintainers
Depends on: 570731
Blocks:
 
 
Reported: 2009-04-27 11:14 UTC by André Klapper
Modified: 2009-08-07 00:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Remove unneeded includes of libgnome/gnome-config.h (1.09 KB, patch)
2009-04-30 18:46 UTC, Thomas Andersen
committed Details | Review
Remove unneeded include of libgnome/gnome-url.h (667 bytes, patch)
2009-04-30 18:47 UTC, Thomas Andersen
committed Details | Review
Replace libgnome by using EggSMClient (138.87 KB, patch)
2009-05-11 00:53 UTC, Thomas Andersen
committed Details | Review

Description André Klapper 2009-04-27 11:14:18 UTC
http://live.gnome.org/LibgnomeMustDie
This library will be removed for GNOME 3.

./configure.in:	libgnome-2.0 >= 2.14.0
./src/yelp-main.c:#include <libgnome/gnome-program.h>
./src/yelp-window.c:#include <libgnome/gnome-config.h>
./src/yelp-window.c:#include <libgnome/gnome-url.h>
./src/test-uri.c:#include <libgnome/gnome-init.h>
./src/test-uri.c:#include <libgnome/gnome-program.h>
./src/yelp-bookmarks.c:#include <libgnome/gnome-config.h>
./docs/help-parsing.txt:There are 3 proposed API calls for libgnome:
Comment 1 André Klapper 2009-04-27 11:16:19 UTC
also see bug 580424
Comment 2 André Klapper 2009-04-29 21:38:34 UTC
gnome-config fixed (see bug 570731).
Comment 3 Thomas Andersen 2009-04-30 18:46:20 UTC
Created attachment 133681 [details] [review]
Remove unneeded includes of libgnome/gnome-config.h

Now that bug #580425 removed the use of gnome-config we don't need the include anymore
Comment 4 Thomas Andersen 2009-04-30 18:47:34 UTC
Created attachment 133682 [details] [review]
Remove unneeded include of libgnome/gnome-url.h

gnome-url looks unused to me. Builds/runs fine without the include.
Comment 5 Thomas Andersen 2009-05-07 11:53:37 UTC
Would you accept a patch to get rid of libgnome by using EggSMClient? Many other modules have done so.
Comment 6 Thomas Andersen 2009-05-11 00:53:39 UTC
Created attachment 134371 [details] [review]
Replace libgnome by using EggSMClient

Patch to remove libgnome by using EggSMClient for session management.

May need some testing. I seem to get wrong results back from egg_sm_client_is_resumed. Also setting the restart command does not like getting g_get_prgname () so using "yelp" instead.

The patch includes the fixes in the other two patches.
Comment 7 Thomas Andersen 2009-06-17 10:15:04 UTC
I should have some free time again starting Monday. If yelp devs can confirm that they want to use eggsmclient I can take a look at this again and test/fix the issue with the current patch.
Comment 8 André Klapper 2009-06-23 16:04:41 UTC
There is currently no way around using EggSMClient until bug 79285 gets resolved. The disadvantage of copying code is currently considered lower than the advantage of dropping libgnome.
Comment 9 André Klapper 2009-06-24 14:00:37 UTC
<shaunm> the first two patches are trivial.  I can commit those easy
<shaunm> if yelp builds with them applied

I take this as an "accepted_commit-now" for the first two items.
Comment 10 Thomas Andersen 2009-06-24 16:37:45 UTC
Cool, I'll commit those tonight. I'll see if I can find the bug in the EggSMClient too. It may even work currently. I just got some strange results but I seem to get them from other apps too. I'll test and attach a new patch if I find anything
Comment 11 Thomas Andersen 2009-06-24 22:54:37 UTC
Andre: In bug #571868 you committed my patch to the webkit branch "and rejected the commit to master". Am I supposed to do the same here? (+ why?)
Comment 12 André Klapper 2009-06-25 11:38:13 UTC
Nope. I wrote "git [...] rejected the commit to master." Not me. :-)
Comment 13 André Klapper 2009-07-18 18:32:39 UTC
In jhbuild we use
  <autotools id="yelp">
    <branch revision="webkit"/>

Thomas, can you commit your 2 patches to the webkit branch, please?
Comment 14 Thomas Andersen 2009-07-19 21:26:57 UTC
That would require that this commit to master is also committed to webkit:
http://git.gnome.org/cgit/yelp/commit/?id=5b3356984a7a3b63928032a9a82175d9d73fee33

I wonder what else is in master but not webkit. 
Comment 15 André Klapper 2009-07-19 23:26:05 UTC
Argh, I was wrong.

<shaunm> andre: master is what I'm working on.  I don't believe I've ever made a commit to webkit
<shaunm> commits on webkit ought to be only for the purpose of switching to webkit
Comment 17 Shaun McCance 2009-08-07 00:29:30 UTC
Committed, thanks.