The VikLayersPanel's "update" signal is not emited when a layer is added (for example after a Copy-Paste action).
There is no reason for that, as adding a layer also upadtes the VikLayersPanel. Signed-off-by: Guilhem Bonnefille <guilhem.bonnefi...@gmail.com> --- src/viklayerspanel.c | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/src/viklayerspanel.c b/src/viklayerspanel.c index c739a00..aa89e9e 100644 --- a/src/viklayerspanel.c +++ b/src/viklayerspanel.c @@ -412,6 +412,12 @@ static void layers_popup_cb ( VikLayersPanel *vlp ) layers_popup ( vlp, NULL, 0 ); } +/** + * vik_layers_panel_new_layer: + * @type: type of the new layer + * + * Create a new layer and add to panel. + */ gboolean vik_layers_panel_new_layer ( VikLayersPanel *vlp, gint type ) { VikLayer *l; @@ -420,12 +426,17 @@ gboolean vik_layers_panel_new_layer ( VikLayersPanel *vlp, gint type ) if ( l ) { vik_layers_panel_add_layer ( vlp, l ); - vik_layers_panel_emit_update ( vlp ); return TRUE; } return FALSE; } +/** + * vik_layers_panel_add_layer: + * @l: existing layer + * + * Add an existing layer to panel. + */ void vik_layers_panel_add_layer ( VikLayersPanel *vlp, VikLayer *l ) { GtkTreeIter iter; @@ -473,6 +484,8 @@ void vik_layers_panel_add_layer ( VikLayersPanel *vlp, VikLayer *l ) else vik_aggregate_layer_add_layer ( addtoagg, l ); } + + vik_layers_panel_emit_update ( vlp ); } static void layers_move_item ( VikLayersPanel *vlp, gboolean up ) -- tg: (06ee554..) t/fix/vlp-update (depends on: master) ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 _______________________________________________ Viking-devel mailing list Viking-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/viking-devel Viking home page: http://viking.sf.net/