Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (41 sloc) 1.35 KB
/* $Id$ */
* Papadimitriou Spiros <>
* 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>
#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, "");
mateweather_prefs_load(&gw_applet->mateweather_pref, gw_applet->settings);
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)
Something went wrong with that request. Please try again.