~ubuntu-branches/ubuntu/natty/xfce4-weather-plugin/natty-proposed

« back to all changes in this revision

Viewing changes to panel-plugin/config_dialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez
  • Date: 2006-09-29 12:14:42 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060929121442-3ljmszbbmmv1x0f5
Tags: 0.5.99.1-2
debian/control: bumped xfce4-panel build-dep to 4.4rc1 to fix FTBFS. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* vim: set expandtab ts=8 sw=4: */
 
2
 
 
3
/*  This program is free software; you can redistribute it and/or modify
 
4
 *  it under the terms of the GNU General Public License as published by
 
5
 *  the Free Software Foundation; either version 2 of the License, or
 
6
 *  (at your option) any later version.
 
7
 *
 
8
 *  This program is distributed in the hope that it will be useful,
 
9
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 *  GNU Library General Public License for more details.
 
12
 *
 
13
 *  You should have received a copy of the GNU General Public License
 
14
 *  along with this program; if not, write to the Free Software
 
15
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
16
 */
 
17
 
1
18
#ifndef CONFIG_DIALOG_H
2
19
#define CONFIG_DIALOG_H
3
20
 
4
 
#include "search_dialog.h"
5
 
#include "plugin.h"
6
 
#include <gtk/gtk.h>
7
 
 
8
 
#define OPTIONS_N 11
9
 
 
10
 
struct labeloption {
11
 
        gchar *name;
12
 
        enum datas number;
13
 
};
14
 
 
15
 
struct xfceweather_dialog {
16
 
        GtkWidget *dialog;
17
 
        GtkWidget *opt_unit;
18
 
        GtkWidget *txt_loc_code;
19
 
 
20
 
        GtkWidget *tooltip_yes;
21
 
        GtkWidget *tooltip_no;
22
 
 
23
 
        GtkWidget *opt_xmloption;
24
 
        GtkWidget *lst_xmloption;
25
 
        GtkListStore *mdl_xmloption;
26
 
 
27
 
        struct xfceweather_data *wd;
28
 
};
29
 
 
30
 
struct xfceweather_dialog *create_config_dialog(struct xfceweather_data *data,
31
 
                GtkContainer *container, 
32
 
                GtkWidget *done);
33
 
 
34
 
void set_callback_config_dialog(struct xfceweather_dialog *dialog, 
35
 
                void(cb)(struct xfceweather_data *));
 
21
G_BEGIN_DECLS
 
22
 
 
23
typedef struct {
 
24
        gchar           *name;
 
25
        datas            number;
 
26
}
 
27
labeloption;
 
28
 
 
29
typedef struct {
 
30
        GtkWidget        *dialog;
 
31
        GtkWidget        *opt_unit;
 
32
        GtkWidget        *txt_loc_code;
 
33
        GtkWidget        *txt_proxy_host;
 
34
        GtkWidget        *txt_proxy_port;
 
35
        GtkWidget        *chk_proxy_use;
 
36
        GtkWidget        *chk_proxy_fromenv;
 
37
 
 
38
        GtkWidget        *tooltip_yes;
 
39
        GtkWidget        *tooltip_no;
 
40
 
 
41
        GtkWidget        *opt_xmloption;
 
42
        GtkWidget        *lst_xmloption;
 
43
        GtkListStore     *mdl_xmloption;
 
44
 
 
45
        xfceweather_data *wd;
 
46
}
 
47
xfceweather_dialog;
 
48
 
 
49
xfceweather_dialog *
 
50
create_config_dialog       (xfceweather_data *data, GtkWidget *vbox);
 
51
 
 
52
void
 
53
set_callback_config_dialog (xfceweather_dialog *dialog, void(cb)(xfceweather_data *));
 
54
 
 
55
void
 
56
apply_options              (xfceweather_dialog *dialog);
 
57
 
 
58
G_END_DECLS
 
59
 
36
60
#endif