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 563970 - build error (missing libgnomeui include)
build error (missing libgnomeui include)
Status: RESOLVED FIXED
Product: gnome-utils
Classification: Deprecated
Component: gdict-applet
trunk
Other Linux
: Normal normal
: ---
Assigned To: gnome-utils Maintainers
gnome-utils Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-12-10 12:40 UTC by Frederic Peters
Modified: 2008-12-19 23:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (2.84 KB, patch)
2008-12-14 11:45 UTC, Cosimo Cecchi
committed Details | Review

Description Frederic Peters 2008-12-10 12:40:58 UTC
panel-applet.h used to include libgnomeui/gnome-ui-init.h, it has just been removed[1] but then gdict-applet build breaks.

gdict-applet.c: In function ‘main’:
gdict-applet.c:1328: error: ‘LIBGNOMEUI_MODULE’ undeclared (first use in this function)
gdict-applet.c:1328: error: (Each undeclared identifier is reported only once
gdict-applet.c:1328: error: for each function it appears in.)
gdict-applet.c:1330: error: ‘GNOME_CLIENT_PARAM_SM_CONNECT’ undeclared (first use in this function)
make[3]: *** [gnome_dictionary_applet-gdict-applet.o] Error 1

The problem with GNOME_CLIENT_PARAM_SM_CONNECT is similar, gnome-client.h.

Adding those two headers to gdict-applet.c should fix the build:

#include <libgnomeui/gnome-ui-init.h>
#include <libgnomeui/gnome-client.h>


[1] http://svn.gnome.org/viewvc/gnome-panel/trunk/libpanel-applet/panel-applet.h?r1=11383&r2=11398
Comment 1 Vincent Untz 2008-12-10 13:05:56 UTC
FWIW:
 + gnome_authentication_manager_init() shouldn't be needed anymore since gdict uses gio now
 + gdict_create_data_dir() could be called inside gdict_applet_factory()
 + and therefore, the code could use the standard macro for applets
Comment 2 Cosimo Cecchi 2008-12-14 11:45:37 UTC
Created attachment 124636 [details] [review]
patch

Patch implementing Vincent's suggestions. Would be great if we could commit this before the 2.25.3 release.
Comment 3 Emmanuele Bassi (:ebassi) 2008-12-15 12:04:48 UTC
looks good to me. please, commit to trunk.
Comment 4 Cosimo Cecchi 2008-12-15 12:10:59 UTC
Fixed in trunk.

2008-12-15  Cosimo Cecchi  <cosimoc@gnome.org>

	* src/gdict-applet.c: (gdict_applet_cmd_help),
	(gdict_applet_factory), (main):
	Remove libgnome dependency and use stock PANEL_APPLET_BONOBO_FACTORY
	macro to initialize applet (#563970).