Compilation fixes

This commit is contained in:
Bradford Hovinen (Gdict maintainer) 2001-07-25 17:44:07 +00:00
parent ab0bce68b1
commit 49364fc5f1
2 changed files with 5 additions and 4 deletions

View file

@ -205,8 +205,9 @@ capplet_activate (Capplet *capplet)
#ifdef HAVE_BONOBO
if (!strncmp (entry->exec[0], "gnomecc", strlen ("gnomecc")))
capplet_control_launch (entry->exec[2], entry->name);
else
#endif
else if (!strncmp (entry->exec[0], "root-manager", strlen ("root-manager")))
if (!strncmp (entry->exec[0], "root-manager", strlen ("root-manager")))
start_capplet_through_root_manager (entry);
else
gnome_desktop_entry_launch (entry);

View file

@ -62,6 +62,9 @@ main (int argc, char **argv)
{
CORBA_ORB orb;
CappletDirEntry *entry;
CappletDir *dir;
static gchar *capplet = NULL;
static struct poptOption gnomecc_options[] = {
#ifdef HAVE_BONOBO
@ -89,9 +92,6 @@ main (int argc, char **argv)
#ifdef HAVE_BONOBO
if (capplet == NULL) {
#endif
CappletDirEntry *entry;
CappletDir *dir;
gnomecc_init ();
dir = get_root_capplet_dir ();
if (!dir)