From: mishas Date: Sat, 19 Jan 2008 10:36:22 +0000 (+0000) Subject: * removed all old plugin interface functions X-Git-Url: http://git.maemo.org/git/?a=commitdiff_plain;h=eb2bb5e66ff7abcef5326224a2a95d73d592962b;p=simple-launcher * removed all old plugin interface functions * removed unnecessary SimpleLauncherApplet::saveState method git-svn-id: file:///svnroot/simple-launcher/branches/new-items@266 3ba93dab-e023-0410-b42a-de7732cf370a --- diff --git a/simple-launcher.cc b/simple-launcher.cc index a9b8a30..9d81d58 100644 --- a/simple-launcher.cc +++ b/simple-launcher.cc @@ -28,22 +28,6 @@ #define SL_APPLET_DBUS_NAME "simple-launcher" #define SL_APPLET_VERSION "0.0" -// Hildon home applet interface functions - -void hildon_home_applet_lib_deinitialize(void *applet_data) { - SimpleLauncherApplet *applet = (SimpleLauncherApplet *)applet_data; - - delete applet; -} - -GtkWidget *hildon_home_applet_lib_settings(void *applet_data, GtkWindow *parent) { - return ((SimpleLauncherApplet *)applet_data)->settings(parent); -} - -int hildon_home_applet_lib_save_state (void *applet_data, void **state_data, int *state_size) { - return ((SimpleLauncherApplet *)applet_data)->saveState(state_data, state_size); -} - // SimpleLauncherApplet implementation char *SimpleLauncherApplet::ourDirs[] = { @@ -240,18 +224,6 @@ void SimpleLauncherApplet::buttonPressed(GtkWidget *button, GdkEventButton *even } } -int SimpleLauncherApplet::saveState(void **state_data, int *state_size) { - if (state_data != NULL) { - *state_data = NULL; - } - - if (state_size != NULL) { - *state_size = 0; - } - - return 1; -} - GtkWidget *SimpleLauncherApplet::settings(GtkWindow *parent) { myParent = parent; // FIXME: Ugly piece of code :( diff --git a/simple-launcher.h b/simple-launcher.h index 9bd6407..bd3ff96 100644 --- a/simple-launcher.h +++ b/simple-launcher.h @@ -34,7 +34,6 @@ public: bool doInit(); - int saveState(void **state_data, int *state_size); GtkWidget *settings(GtkWindow *parent); GtkWidget *getWidget() const { return myWidget; }