project-wizard: 616728 - hide breakpoints and watches windows on new project

The debugger breakpoints and watches windows are now hidden in the default
layout.
document-manager: Fix disconnection of GtkNotebook "switch-page" signal.

We previously tried to disconnect the signal on the AnjutaDocman instance but AnjutaDocman
is no longer a subclass of GtkNotebook.

https://bugzilla.gnome.org/show_bug.cgi?id=689054
anjuta-plugin-handle: Use g_hash_table_remove_all instead of g_hash_table_foreach_remove.

https://bugzilla.gnome.org/show_bug.cgi?id=689054
file-manager: Keep a weak reference to the IAnjutaVcs object in FileModel.

So that we don't call functions on it if it goes away.

https://bugzilla.gnome.org/show_bug.cgi?id=689054
plugin-manager: Fix dependents checking on wrong object in should_unload().

The function should check if the plugin is one of the dependents of the plugin that is to be
unloaded and not if the plugin is dependent on itself.

https://bugzilla.gnome.org/show_bug.cgi?id=689054
file-manager: Unref the FileModel reference when the FileView gets finalized.

https://bugzilla.gnome.org/show_bug.cgi?id=689054
[l10n] Updated German translation
run-program: Keep a weak reference to the IAnjutaTerminal we run the program in.

So that we can disconnect our signal handlers from it without reloading it if it has already
been unloaded.

https://bugzilla.gnome.org/show_bug.cgi?id=689054
plugin-manager: Don't destroy available_plugins order in populate_plugin_model().

The available_plugins list is sorted in dependency order so we should not destroy the ordering
by sorting it by name in populate_plugin_model().

https://bugzilla.gnome.org/show_bug.cgi?id=689054
anjuta: Fix destruction of the AnjutaUI instance.

AnjutaUI is a not a GtkWidget so call g_object_unref() instead of gtk_widget_destroy() on
it. Also disconnect the signal handlers from the GdlLayoutManager when the AnjutaWindow
is disposed so we don't get any stray signals.

https://bugzilla.gnome.org/show_bug.cgi?id=689054
Updated Czech translation
libanjuta: Set "relative-path" property of AnjutaFileDropEntry as readwrite.

Also set the default to NULL and pass G_PARAM_STATIC_STRINGS as paramspec flag.
Fixes the following assertion:
(lt-anjuta:10419): GLib-GObject-CRITICAL **: g_object_class_install_property: assertion `pspec->flags & (G_PARAM_READABLE | G_PARAM_WRITABLE)' failed

https://bugzilla.gnome.org/show_bug.cgi?id=689065
glade: Add toggle buttons for margin and align editing.

Also use a builder file to build the buttons instead of doing it in the code.

https://bugzilla.gnome.org/show_bug.cgi?id=689064
anjuta: Fix destruction of AnjutaPreferences instance.

AnjutaPreferences is not a GtkWidget so it should not be destroyed with
gtk_widget_destroy(). Also make it not a singleton anymore since this causes
some hard to solve problems.

https://bugzilla.gnome.org/show_bug.cgi?id=689054
sourceview: Don't store the builder for the preferences in a global variable.

There's no need to keep the builder alive since anjuta_preferences_add_from_builder()
will keep the widgets alive and we can just store all the widgets we want to interact with
in the plugin object.

This fixes a crasher when more than one preferences window is used at the same time for
different windows.

https://bugzilla.gnome.org/show_bug.cgi?id=689054
am-project: Change the "Dependencies loop in variables" warning to a debug print.
plugin-manager: Clean up memory management.

1. Add a value destroy function to the activated_plugins and
   plugins_cache hash tables. Have the hash tables always owning one reference
   to the plugin.

2. Use g_hash_table_remove_all() and g_hash_table_destroy() instead of
   g_hash_table_foreach_remove().

https://bugzilla.gnome.org/show_bug.cgi?id=689054
plugin-manager: Directly use anjuta_plugin_deactivate in unload_all_plugins().

Instead of using plugin_set_update() which may show dialogs and does a lot more than
we need when we deactivate all the plugins.

https://bugzilla.gnome.org/show_bug.cgi?id=689054
profile-manager: Add new close() function.

/**
 * anjuta_profile_manager_close:
 * @profile_manager: A #AnjutaProfileManager object.
 *
 * Close the #AnjutaProfileManager causing "profile-descoped" to be emitted and
 * all queued and previous profiles to be released. This function is to be used
 * when destroying an Anjuta instance.
 */

https://bugzilla.gnome.org/show_bug.cgi?id=689054
anjuta: unload all plugins before closing a window.

Since all Anjuta windows are in the same process it's now important that we properly unload
all plugins when destroying the window. If we don't the plugins may have active
timeouts/asynchronous operations etc. that when triggered reference plugins/widgets that
are no longer alive.

https://bugzilla.gnome.org/show_bug.cgi?id=689054