summaryrefslogtreecommitdiffstats
path: root/gnome-initial-setup/pages/timezone/gis-location-entry.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:47:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:47:04 +0000
commite05fb7b3e36c052baf0dd607ddeb22c0a2b5cbde (patch)
tree7a27d70e96502edf2b5576d3ca403f1b8512f55b /gnome-initial-setup/pages/timezone/gis-location-entry.h
parentInitial commit. (diff)
downloadgnome-initial-setup-upstream/43.2.tar.xz
gnome-initial-setup-upstream/43.2.zip
Adding upstream version 43.2.upstream/43.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gnome-initial-setup/pages/timezone/gis-location-entry.h')
-rw-r--r--gnome-initial-setup/pages/timezone/gis-location-entry.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/gnome-initial-setup/pages/timezone/gis-location-entry.h b/gnome-initial-setup/pages/timezone/gis-location-entry.h
new file mode 100644
index 0000000..ebd114f
--- /dev/null
+++ b/gnome-initial-setup/pages/timezone/gis-location-entry.h
@@ -0,0 +1,46 @@
+/* gweather-location-entry.h - Location-selecting text entry
+ *
+ * SPDX-FileCopyrightText: 2008, Red Hat, Inc.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+#pragma once
+
+#include <adwaita.h>
+#include <libgweather/gweather.h>
+
+G_BEGIN_DECLS
+
+typedef struct _GisLocationEntry GisLocationEntry;
+typedef struct _GisLocationEntryClass GisLocationEntryClass;
+typedef struct _GisLocationEntryPrivate GisLocationEntryPrivate;
+
+#define GIS_TYPE_LOCATION_ENTRY (gis_location_entry_get_type ())
+#define GIS_LOCATION_ENTRY(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GIS_TYPE_LOCATION_ENTRY, GisLocationEntry))
+#define GIS_LOCATION_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIS_TYPE_LOCATION_ENTRY, GisLocationEntryClass))
+#define GIS_IS_LOCATION_ENTRY(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GIS_TYPE_LOCATION_ENTRY))
+#define GIS_IS_LOCATION_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIS_TYPE_LOCATION_ENTRY))
+#define GIS_LOCATION_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIS_TYPE_LOCATION_ENTRY, GisLocationEntryClass))
+
+struct _GisLocationEntry {
+ AdwBin parent;
+
+ /*< private >*/
+ GisLocationEntryPrivate *priv;
+};
+
+struct _GisLocationEntryClass {
+ AdwBinClass parent_class;
+};
+
+GType gis_location_entry_get_type (void);
+
+GtkWidget * gis_location_entry_new (GWeatherLocation *top);
+void gis_location_entry_set_location (GisLocationEntry *entry,
+ GWeatherLocation *loc);
+GWeatherLocation * gis_location_entry_get_location (GisLocationEntry *entry);
+gboolean gis_location_entry_set_city (GisLocationEntry *entry,
+ const char *city_name,
+ const char *code);
+
+G_END_DECLS