diff options
author | Jiří Techet <techet@gmail.com> | 2015-11-16 23:31:01 +0100 |
---|---|---|
committer | Jiří Techet <techet@gmail.com> | 2015-11-16 23:31:01 +0100 |
commit | d115060c179a4894f0f257c606d473740b0d2961 (patch) | |
tree | 94e8244e3af386ef39a8f49ab1708ff38500c57b /demos | |
parent | 8689ed647959defbfe11dec4b37736c5334a7547 (diff) | |
download | libchamplain-d115060c179a4894f0f257c606d473740b0d2961.tar.gz |
Whitespace cleanups
Diffstat (limited to 'demos')
-rw-r--r-- | demos/launcher-gtk.c | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/demos/launcher-gtk.c b/demos/launcher-gtk.c index 12a06c0..dba8dee 100644 --- a/demos/launcher-gtk.c +++ b/demos/launcher-gtk.c @@ -51,7 +51,6 @@ toggle_layer (GtkToggleButton *widget, { champlain_path_layer_set_visible (path_layer, TRUE); champlain_path_layer_set_visible (path, TRUE); - champlain_marker_layer_animate_in_all_markers (CHAMPLAIN_MARKER_LAYER (layer)); } else @@ -211,6 +210,7 @@ append_point (ChamplainPathLayer *layer, gdouble lon, gdouble lat) champlain_path_layer_add_node (layer, CHAMPLAIN_LOCATION (coord)); } + static void export_to_png_cb (GdkPixbuf *pixbuf, GAsyncResult *res) @@ -218,6 +218,7 @@ export_to_png_cb (GdkPixbuf *pixbuf, gdk_pixbuf_save_to_stream_finish (res, NULL); } + static void export_png (GtkButton *button, ChamplainView *view) @@ -256,6 +257,7 @@ export_png (GtkButton *button, NULL); } + static void add_clicked (GtkButton *button, ChamplainView *view) @@ -284,31 +286,33 @@ add_clicked (GtkButton *button, response = gtk_dialog_run (GTK_DIALOG (dialog)); - if (response == GTK_RESPONSE_OK) { - GtkTreeModel *model; - GtkTreeIter iter; - ChamplainMapSource *source; - ChamplainMapSourceFactory *factory; - char *id; + if (response == GTK_RESPONSE_OK) + { + GtkTreeModel *model; + GtkTreeIter iter; + ChamplainMapSource *source; + ChamplainMapSourceFactory *factory; + char *id; - if (!gtk_combo_box_get_active_iter (GTK_COMBO_BOX (combo), &iter)) - return; + if (!gtk_combo_box_get_active_iter (GTK_COMBO_BOX (combo), &iter)) + return; - model = gtk_combo_box_get_model (GTK_COMBO_BOX (combo)); + model = gtk_combo_box_get_model (GTK_COMBO_BOX (combo)); - gtk_tree_model_get (model, &iter, COL_ID, &id, -1); + gtk_tree_model_get (model, &iter, COL_ID, &id, -1); - factory = champlain_map_source_factory_dup_default (); - source = champlain_map_source_factory_create_memcached_source (factory, id); + factory = champlain_map_source_factory_dup_default (); + source = champlain_map_source_factory_create_memcached_source (factory, id); - champlain_view_add_overlay_source (view, source, 0.6 * 255); - g_object_unref (factory); - g_free (id); - } + champlain_view_add_overlay_source (view, source, 0.6 * 255); + g_object_unref (factory); + g_free (id); + } gtk_widget_destroy (dialog); } + int main (int argc, char *argv[]) |