diff options
author | Eskil Heyn Olsen <eskil@src.gnome.org> | 1999-10-22 09:16:15 +0800 |
---|---|---|
committer | Eskil Heyn Olsen <eskil@src.gnome.org> | 1999-10-22 09:16:15 +0800 |
commit | 47f01927e15b6eb279d2cbf046b2707467096666 (patch) | |
tree | 9a61c996094c07640cad5f1d77b0956e4f361b48 /calendar/gui/todo-conduit-control-applet.c | |
parent | 0a505aa40e7504dec10119c0bb4c84087e3d06d4 (diff) | |
download | gsoc2013-evolution-47f01927e15b6eb279d2cbf046b2707467096666.tar.gz gsoc2013-evolution-47f01927e15b6eb279d2cbf046b2707467096666.tar.zst gsoc2013-evolution-47f01927e15b6eb279d2cbf046b2707467096666.zip |
now it doesn't build todo conduit anymore. Since the conduit is just a
* Makefile.am: now it doesn't build todo conduit
anymore. Since the conduit is just a skeleton, no need to
build and install it.
* calendar-conduit-control-applet.c: revamped for all the
changes in calendar-conduit.h. Also fixed the pilotId bug that
all conduit capplets had.
* calendar-conduit-control-applet.desktop: renamed to
GnomeCalendar.
* calendar-conduit.h: Fixed namespace pollution, appended GCal
to structures, gcalconduit to methods. Introduced the
GCalConduitContext.
* calendar-conduit.c: No more global variables, all is contained
in a GCalConduitContext variable, that all the signals are
passed as user data.
svn path=/trunk/; revision=1338
Diffstat (limited to 'calendar/gui/todo-conduit-control-applet.c')
-rw-r--r-- | calendar/gui/todo-conduit-control-applet.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/calendar/gui/todo-conduit-control-applet.c b/calendar/gui/todo-conduit-control-applet.c index 973a6192c8..54a26715ef 100644 --- a/calendar/gui/todo-conduit-control-applet.c +++ b/calendar/gui/todo-conduit-control-applet.c @@ -38,7 +38,7 @@ static void doSaveSettings(GtkWidget *widget, ConduitCfg *conduitCfg); static void readStateCfg(GtkWidget *w); static void setStateCfg(GtkWidget *w); -gchar *pilotId; +gint pilotId; CORBA_Environment ev; static void @@ -223,28 +223,29 @@ void run_error_dialog(gchar *mesg,...) { va_end(ap); } -gchar *get_pilot_id_from_gpilotd() { - gchar **pilots; - int i; +gint get_pilot_id_from_gpilotd() { + gint *pilots; + int i; - i=0; - gpilotd_get_pilots(&pilots); - if(pilots) { - while(pilots[i]) { g_message("pilot %d = \"%s\"",i,pilots[i]); i++; } - if(i==0) { - run_error_dialog(_("No pilot configured, please choose the\n'Pilot Link Properties' capplet first.")); - return NULL; - } else - if(i==1) - return pilots[0]; - else { - g_message("too many pilots..."); - return pilots[0]; - } - } else { - run_error_dialog(_("No pilot configured, please choose the\n'Pilot Link Properties' capplet first.")); - return NULL; - } + i=0; + gpilotd_get_pilot_ids(&pilots); + if(pilots) { + while(pilots[i]!=-1) { g_message("pilot %d = \"%d\"",i,pilots[i]); i++; } + if(i==0) { + run_error_dialog(_("No pilot configured, please choose the\n'Pilot Link Properties' capplet first.")); + return -1; + } else { + if(i==1) + return pilots[0]; + else { + g_message("too many pilots..."); + return pilots[0]; + } + } + } else { + run_error_dialog(_("No pilot configured, please choose the\n'Pilot Link Properties' capplet first.")); + return -1; + } } int @@ -282,6 +283,5 @@ main( int argc, char *argv[] ) /* done setting up, now run main loop */ capplet_gtk_main(); - g_free(pilotId); return 0; } |