kopia lustrzana https://gitlab.com/Zwarf/picplanner
Append testing shumate code
rodzic
a964a8de6a
commit
6ec15b87e4
|
@ -19,7 +19,6 @@
|
|||
#include "picplanner-application.h"
|
||||
#include "picplanner-window.h"
|
||||
#include "ui-defines/preferences-dialog.h"
|
||||
#include "ui-defines/overview-view.h"
|
||||
|
||||
struct _PicplannerApplication
|
||||
{
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <shumate/shumate.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <shumate/shumate.h>
|
||||
#include "picplanner-config.h"
|
||||
#include "picplanner-application.h"
|
||||
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
|
||||
struct _PicplannerOverview
|
||||
{
|
||||
GtkBox parent_instance;
|
||||
GtkWidget *calendar;
|
||||
GtkWidget *calendar_popover;
|
||||
GtkWidget *calendar_button;
|
||||
GtkWidget *north_entry;
|
||||
GtkWidget *east_entry;
|
||||
|
||||
GtkBox *parent_instance;
|
||||
GtkWidget *calendar;
|
||||
GtkWidget *calendar_popover;
|
||||
GtkWidget *calendar_button;
|
||||
GtkWidget *north_entry;
|
||||
GtkWidget *east_entry;
|
||||
ShumateSimpleMap *map;
|
||||
};
|
||||
|
||||
G_DEFINE_TYPE (PicplannerOverview, picplanner_overview, GTK_TYPE_BOX)
|
||||
|
@ -30,8 +30,6 @@ coordinate_entry_changed (GtkWidget *self,
|
|||
north = gtk_entry_buffer_get_text (north_buffer);
|
||||
east = gtk_entry_buffer_get_text (east_buffer);
|
||||
|
||||
|
||||
|
||||
g_print ("Coordinates changed to: N %f, E %f \n", atof(north), atof(east));
|
||||
}
|
||||
|
||||
|
@ -82,6 +80,14 @@ static void
|
|||
picplanner_overview_init (PicplannerOverview *self)
|
||||
{
|
||||
gtk_widget_init_template (GTK_WIDGET (self));
|
||||
|
||||
/*
|
||||
ShumateMapSource *map_source;
|
||||
ShumateMapSourceRegistry *registry;
|
||||
registry = shumate_map_source_registry_new_with_defaults ();
|
||||
map_source = shumate_map_source_registry_get_by_id (registry, SHUMATE_MAP_SOURCE_OSM_MAPNIK);
|
||||
shumate_simple_map_set_map_source (self->map, map_source);
|
||||
*/
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -97,6 +103,7 @@ picplanner_overview_class_init (PicplannerOverviewClass *class)
|
|||
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), PicplannerOverview, calendar_button);
|
||||
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), PicplannerOverview, north_entry);
|
||||
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), PicplannerOverview, east_entry);
|
||||
//gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), PicplannerOverview, map);
|
||||
|
||||
gtk_widget_class_bind_template_callback (class, coordinate_entry_changed);
|
||||
gtk_widget_class_bind_template_callback (class, time_changed);
|
||||
|
|
|
@ -166,6 +166,7 @@
|
|||
</object>
|
||||
</child>
|
||||
|
||||
<!--
|
||||
<child>
|
||||
<object class="GtkListBoxRow">
|
||||
|
||||
|
@ -176,6 +177,7 @@
|
|||
|
||||
</object>
|
||||
</child>
|
||||
-->
|
||||
|
||||
</object>
|
||||
</child>
|
||||
|
|
Ładowanie…
Reference in New Issue