File: weather-search.h

package info (click to toggle)
xfce4-weather-plugin 0.7.3-3%2Bsqueeze2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,036 kB
  • ctags: 502
  • sloc: sh: 10,231; ansic: 4,279; makefile: 150
file content (60 lines) | stat: -rw-r--r-- 1,706 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*  $Id: weather-search.h 7609 2009-06-18 17:29:09Z colin $
 *
 *  Copyright (c) 2003-2007 Xfce Development Team
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Library General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

#include <glib.h>
#include <gmodule.h>
#include <gtk/gtk.h>

#ifndef __WEATHER_SEARCH_H__
#define __WEATHER_SEARCH_H__

G_BEGIN_DECLS

typedef struct
{
  GtkWidget    *dialog;
  GtkWidget    *search_entry;
  GtkWidget    *result_list;
  GtkWidget    *find_button;
  GtkListStore *result_mdl;
  GtkTreeViewColumn *column;

  gchar        *result;
  gchar        *result_name;

  gchar        *proxy_host;
  gint          proxy_port;
  
  gchar        *last_search;
}
search_dialog;

search_dialog *create_search_dialog (GtkWindow *, gchar *, gint);

gboolean run_search_dialog (search_dialog * dialog);

gboolean weather_search_by_ip(const gchar *proxy_host, gint proxy_port,
	void (*gui_cb)(const gchar *loc_name, const gchar *loc_code, gpointer user_data),
	gpointer user_data);

void free_search_dialog (search_dialog * dialog);

G_END_DECLS

#endif