summaryrefslogtreecommitdiff
path: root/mateweather/main.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-12-02 10:19:16 +0100
committerraveit65 <[email protected]>2020-12-13 16:20:04 +0100
commit1f964c265a0f45c064d312dcd51f985e877cbc55 (patch)
treee7520456bc97ba82c19fdbbd9f5fd69807919069 /mateweather/main.c
parentfbca7353191c20b3ce70fe2390491305ba3968fa (diff)
downloadmate-applets-1f964c265a0f45c064d312dcd51f985e877cbc55.tar.bz2
mate-applets-1f964c265a0f45c064d312dcd51f985e877cbc55.tar.xz
mateweather: Use common subdirs - src, data
Diffstat (limited to 'mateweather/main.c')
-rw-r--r--mateweather/main.c58
1 files changed, 0 insertions, 58 deletions
diff --git a/mateweather/main.c b/mateweather/main.c
deleted file mode 100644
index de8d8436..00000000
--- a/mateweather/main.c
+++ /dev/null
@@ -1,58 +0,0 @@
-/* $Id$ */
-
-/*
- * Papadimitriou Spiros <[email protected]>
- *
- * This code released under the GNU GPL.
- * Read the file COPYING for more information.
- *
- * Main applet widget
- *
- */
-
-#include <glib.h>
-#include <config.h>
-#include <gtk/gtk.h>
-#include <gio/gio.h>
-#include <mate-panel-applet.h>
-#include <mate-panel-applet-gsettings.h>
-
-#define MATEWEATHER_I_KNOW_THIS_IS_UNSTABLE
-
-#include <libmateweather/mateweather-prefs.h>
-
-#include "mateweather.h"
-#include "mateweather-pref.h"
-#include "mateweather-dialog.h"
-#include "mateweather-applet.h"
-
-
-static gboolean mateweather_applet_new(MatePanelApplet* applet, const gchar* iid, gpointer data)
-{
- MateWeatherApplet* gw_applet;
-
- gw_applet = g_new0(MateWeatherApplet, 1);
-
- gw_applet->applet = applet;
- gw_applet->mateweather_info = NULL;
- gw_applet->settings = mate_panel_applet_settings_new (applet, "org.mate.weather");
-
- mateweather_applet_create(gw_applet);
-
- mateweather_prefs_load(&gw_applet->mateweather_pref, gw_applet->settings);
-
- mateweather_update(gw_applet);
-
- return TRUE;
-}
-
-static gboolean mateweather_applet_factory(MatePanelApplet* applet, const gchar* iid, gpointer data)
-{
- gboolean retval = FALSE;
-
- retval = mateweather_applet_new(applet, iid, data);
-
- return retval;
-}
-
-MATE_PANEL_APPLET_OUT_PROCESS_FACTORY("MateWeatherAppletFactory", PANEL_TYPE_APPLET, "mateweather", mateweather_applet_factory, NULL)