1 /* $Id$ */ 2 3 /* 4 * Papadimitriou Spiros <spapadim+@cs.cmu.edu> 5 * 6 * This code released under the GNU GPL. 7 * Read the file COPYING for more information. 8 * 9 * Preferences dialog 10 * 11 */ 12 13 #ifndef __MATEWEATHER_PREF_H_ 14 #define __MATEWEATHER_PREF_H_ 15 16 #include <gtk/gtk.h> 17 18 #define MATEWEATHER_I_KNOW_THIS_IS_UNSTABLE 19 20 #include "mateweather.h" 21 22 G_BEGIN_DECLS 23 24 #define MATEWEATHER_TYPE_PREF (mateweather_pref_get_type ()) 25 #define MATEWEATHER_PREF(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATEWEATHER_TYPE_PREF, MateWeatherPref)) 26 #define MATEWEATHER_PREF_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MATEWEATHER_TYPE_PREF, MateWeatherPrefClass)) 27 #define MATEWEATHER_IS_PREF(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATEWEATHER_TYPE_PREF)) 28 #define MATEWEATHER_IS_PREF_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MATEWEATHER_TYPE_PREF)) 29 #define MATEWEATHER_PREF_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MATEWEATHER_TYPE_PREF, MateWeatherPrefClass)) 30 31 typedef struct _MateWeatherPref MateWeatherPref; 32 typedef struct _MateWeatherPrefPrivate MateWeatherPrefPrivate; 33 typedef struct _MateWeatherPrefClass MateWeatherPrefClass; 34 35 struct _MateWeatherPref 36 { 37 GtkDialog parent; 38 39 /* private */ 40 MateWeatherPrefPrivate *priv; 41 }; 42 43 44 struct _MateWeatherPrefClass 45 { 46 GtkDialogClass parent_class; 47 }; 48 49 GType mateweather_pref_get_type (void); 50 GtkWidget *mateweather_pref_new (MateWeatherApplet *applet); 51 52 53 void set_access_namedesc (GtkWidget *widget, const gchar *name, const gchar *desc); 54 55 56 G_END_DECLS 57 58 #endif /* __MATEWEATHER_PREF_H */ 59 60