[anjuta] bgo #577741 – "single step over function" does not always work as expected
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: svn-commits-list gnome org
- Subject: [anjuta] bgo #577741 – "single step over function" does not always work as expected
- Date: Sat, 11 Jul 2009 08:24:12 +0000 (UTC)
commit dd35034f410c5bbff15313c54911a4d4e798197b
Author: Sébastien Granjoux <seb sfo free fr>
Date: Sat Jul 11 10:17:14 2009 +0200
bgo #577741 â?? "single step over function" does not always work as expected
libanjuta/interfaces/libanjuta.idl | 50 ++
plugins/build-basic-autotools/configuration-list.c | 7 +-
plugins/build-basic-autotools/plugin.c | 56 ++
plugins/debug-manager/Makefile.am | 23 +
.../debug-manager/anjuta-debug-manager.schemas.in | 18 +
plugins/debug-manager/anjuta-debug-manager.ui | 661 +++++++++++++++-----
plugins/debug-manager/start.c | 71 +++
7 files changed, 716 insertions(+), 170 deletions(-)
---
diff --git a/libanjuta/interfaces/libanjuta.idl b/libanjuta/interfaces/libanjuta.idl
index 1bef6fa..4815aab 100644
--- a/libanjuta/interfaces/libanjuta.idl
+++ b/libanjuta/interfaces/libanjuta.idl
@@ -670,6 +670,27 @@ interface IAnjutaBuilder
*/
#define ROOT_URI "build_root_uri"
+ /**
+ * IANJUTA_BUILDER_CONFIGURATION_DEBUG
+ *
+ * Name of debugging configutation.
+ */
+ #define CONFIGURATION_DEBUG "Debug"
+
+ /**
+ * IANJUTA_BUILDER_CONFIGURATION_OPTIMIZED
+ *
+ * Name of optimized configutation.
+ */
+ #define CONFIGURATION_OPTIMIZED "Optimized"
+
+ /**
+ * IANJUTA_BUILDER_CONFIGURATION_PROFILING
+ *
+ * Name of profiling configutation.
+ */
+ #define CONFIGURATION_PROFILING "Profiling"
+
/**
* ianjuta_builder_is_built:
* @obj: Self
@@ -715,6 +736,35 @@ interface IAnjutaBuilder
*
*/
void cancel (Handle handle);
+
+ /**
+ * ianjuta_builder_list_configuration:
+ * @obj: Self
+ * @err: Error propagation and reporting.
+ *
+ * List all defined configuration. These names returned are
+ * the internal non localized names for the following
+ * predefined configuration: Debug, Profiling, Optimized.
+ * The default configuration has no name and is not returned.
+ *
+ * Returns: a list configuration name. The names are owned
+ * by the plugin, so only the list has to be free using
+ * g_list_free.
+ */
+ List<const gchar*> list_configuration();
+
+ /**
+ * ianjuta_builder_get_uri_configuration:
+ * @obj: Self
+ * @uri: target uri
+ * @err: Error propagation and reporting.
+ *
+ * Get the configuration corresponding to the target uri.
+ *
+ * Returns: The configuration name or NULL if the corresponding
+ * configuration cannot be found.
+ */
+ const gchar* get_uri_configuration(const gchar *uri);
}
/**
diff --git a/plugins/build-basic-autotools/configuration-list.c b/plugins/build-basic-autotools/configuration-list.c
index ec7e935..599f096 100644
--- a/plugins/build-basic-autotools/configuration-list.c
+++ b/plugins/build-basic-autotools/configuration-list.c
@@ -21,6 +21,7 @@
#include "configuration-list.h"
#include <libanjuta/anjuta-debug.h>
+#include <libanjuta/interfaces/ianjuta-builder.h>
#include <glib/gi18n.h>
#include <gio/gio.h>
#include <string.h>
@@ -59,9 +60,9 @@ struct _DefaultBuildConfiguration
const DefaultBuildConfiguration default_config[] = {
{N_("Default"), NULL, "--enable-maintainer-mode"},
- {N_("Debug"), "Debug", "--enable-maintainer-mode 'CFLAGS=-g -O0' 'CXXFLAGS=-g -O0' 'JFLAGS=-g -O0' 'FFLAGS=-g -O0'"},
- {N_("Profiling"), "Profiling", "--enable-maintainer-mode 'CFLAGS=-g -pg' 'CXXFLAGS=-g -pg' 'JFLAGS=-g -pg' 'FFLAGS=-g -pg'"},
- {N_("Optimized"), "Optimized", "--enable-maintainer-mode 'CFLAGS=-O2' 'CXXFLAGS=-O2' 'JFLAGS=-O2' 'FFLAGS=-O2'"},
+ {N_("Debug"), IANJUTA_BUILDER_CONFIGURATION_DEBUG, "--enable-maintainer-mode 'CFLAGS=-g -O0' 'CXXFLAGS=-g -O0' 'JFLAGS=-g -O0' 'FFLAGS=-g -O0'"},
+ {N_("Profiling"), IANJUTA_BUILDER_CONFIGURATION_PROFILING, "--enable-maintainer-mode 'CFLAGS=-g -pg' 'CXXFLAGS=-g -pg' 'JFLAGS=-g -pg' 'FFLAGS=-g -pg'"},
+ {N_("Optimized"), IANJUTA_BUILDER_CONFIGURATION_OPTIMIZED, "--enable-maintainer-mode 'CFLAGS=-O2' 'CXXFLAGS=-O2' 'JFLAGS=-O2' 'FFLAGS=-O2'"},
{NULL, NULL, NULL}
};
diff --git a/plugins/build-basic-autotools/plugin.c b/plugins/build-basic-autotools/plugin.c
index 952d273..b22f201 100644
--- a/plugins/build-basic-autotools/plugin.c
+++ b/plugins/build-basic-autotools/plugin.c
@@ -1983,6 +1983,44 @@ build_configure_and_build (BasicAutotoolsPlugin *plugin, BuildFunc func, const g
}
}
+/* Configuration commands
+ *---------------------------------------------------------------------------*/
+
+static GList*
+build_list_configuration (BasicAutotoolsPlugin *plugin)
+{
+ BuildConfiguration *cfg;
+ GList *list = NULL;
+
+ for (cfg = build_configuration_list_get_first (plugin->configurations); cfg != NULL; cfg = build_configuration_next (cfg))
+ {
+ const gchar *name = build_configuration_get_name (cfg);
+
+ if (name != NULL) list = g_list_prepend (list, (gpointer)name);
+ }
+
+ return list;
+}
+
+static const gchar*
+build_get_uri_configuration (BasicAutotoolsPlugin *plugin, const gchar *uri)
+{
+ BuildConfiguration *cfg;
+
+ for (cfg = build_configuration_list_get_first (plugin->configurations); cfg != NULL; cfg = build_configuration_next (cfg))
+ {
+ const gchar *root = build_configuration_list_get_build_uri (plugin->configurations, cfg);
+
+ if (strncmp (uri, root, strlen (root)) == 0)
+ {
+ return build_configuration_get_name (cfg);
+ }
+ }
+
+ return NULL;
+}
+
+
/* User actions
*---------------------------------------------------------------------------*/
@@ -3332,12 +3370,30 @@ ibuilder_cancel (IAnjutaBuilder *builder, IAnjutaBuilderHandle handle, GError **
build_cancel_command (plugin, (BuildContext *)handle, err);
}
+static GList*
+ibuilder_list_configuration (IAnjutaBuilder *builder, GError **err)
+{
+ BasicAutotoolsPlugin *plugin = ANJUTA_PLUGIN_BASIC_AUTOTOOLS (builder);
+
+ return build_list_configuration (plugin);
+}
+
+static const gchar*
+ibuilder_get_uri_configuration (IAnjutaBuilder *builder, const gchar *uri, GError **err)
+{
+ BasicAutotoolsPlugin *plugin = ANJUTA_PLUGIN_BASIC_AUTOTOOLS (builder);
+
+ return build_get_uri_configuration (plugin, uri);
+}
+
static void
ibuilder_iface_init (IAnjutaBuilderIface *iface)
{
iface->is_built = ibuilder_is_built;
iface->build = ibuilder_build;
iface->cancel = ibuilder_cancel;
+ iface->list_configuration = ibuilder_list_configuration;
+ iface->get_uri_configuration = ibuilder_get_uri_configuration;
}
/* IAnjutaPreferences implementation
diff --git a/plugins/debug-manager/Makefile.am b/plugins/debug-manager/Makefile.am
index f3757eb..2c3bacd 100644
--- a/plugins/debug-manager/Makefile.am
+++ b/plugins/debug-manager/Makefile.am
@@ -5,6 +5,11 @@ anjuta_glade_DATA = anjuta-debug-manager.ui
anjuta_uidir = $(anjuta_ui_dir)
anjuta_ui_DATA = anjuta-debug-manager.xml
+schemadir = @GCONF_SCHEMA_FILE_DIR@
+schema_in_files = anjuta-debug-manager.schemas
+schema_DATA = $(schema_in_files:.schemas.in=.schemas)
+ INTLTOOL_SCHEMAS_RULE@
+
plugin_in_files = anjuta-debug-manager.plugin.in
%.plugin: %.plugin.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
@@ -37,6 +42,18 @@ anjuta-marshal.c: anjuta-marshal.list
echo "#include \"anjuta-marshal.h\"" > $@ && \
glib-genmarshal $< --body --prefix=anjuta_marshal >> $@
+if GCONF_SCHEMAS_INSTALL
+install-data-local:
+ GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$(schema_DATA)
+
+uninstall-local:
+ GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-uninstall-rule $(srcdir)/$(schema_DATA)
+else
+install-data-local:
+
+uninstall-local:
+endif
+
libanjuta_debug_manager_la_SOURCES = \
$(BUILT_SOURCES) \
plugin.c \
@@ -91,10 +108,16 @@ libanjuta_debug_manager_la_SOURCES = \
EXTRA_DIST = \
$(plugin_in_files) \
$(anjuta_plugin_DATA) \
+ $(schema_in_files) \
+ $(schema_DATA) \
$(anjuta_ui_DATA) \
$(anjuta_glade_DATA) \
anjuta-marshal.list
+DISTCLEANFILES = \
+ $(anjuta_plugin_DATA) \
+ $(schema_DATA)
+
SUBDIRS = \
images
diff --git a/plugins/debug-manager/anjuta-debug-manager.schemas.in b/plugins/debug-manager/anjuta-debug-manager.schemas.in
new file mode 100644
index 0000000..584edf1
--- /dev/null
+++ b/plugins/debug-manager/anjuta-debug-manager.schemas.in
@@ -0,0 +1,18 @@
+<gconfschemafile>
+ <schemalist>
+
+ <!-- Anjuta Debug Manager Plugin settings -->
+
+ <schema>
+ <key>/schemas/apps/anjuta/debug_manager/silent_non_debug_config</key>
+ <applyto>/apps/anjuta/debug_manager/silent_non_debug_config</applyto>
+ <owner>anjuta</owner>
+ <type>bool</type>
+ <default>false</default>
+ <locale name="C">
+ <short>Do not display warning if not using a Debug configuration</short>
+ </locale>
+ </schema>
+
+ </schemalist>
+</gconfschemafile>
diff --git a/plugins/debug-manager/anjuta-debug-manager.ui b/plugins/debug-manager/anjuta-debug-manager.ui
index b0e9d54..ed75ae7 100644
--- a/plugins/debug-manager/anjuta-debug-manager.ui
+++ b/plugins/debug-manager/anjuta-debug-manager.ui
@@ -1,12 +1,13 @@
<?xml version="1.0"?>
-<!--*- mode: xml -*-->
<interface>
+ <requires lib="gtk+" version="2.14"/>
+ <!-- interface-naming-policy toplevel-contextual -->
<object class="GtkDialog" id="attach_process_dialog">
<property name="title" translatable="yes">Attach to process</property>
- <property name="window_position">GTK_WIN_POS_CENTER</property>
+ <property name="window_position">center</property>
<property name="default_width">600</property>
<property name="default_height">400</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
+ <property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox1">
<property name="visible">True</property>
@@ -27,15 +28,16 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
+ <property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkScrolledWindow" id="scrolledwindow1">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="shadow_type">GTK_SHADOW_IN</property>
+ <property name="hscrollbar_policy">automatic</property>
+ <property name="vscrollbar_policy">automatic</property>
+ <property name="shadow_type">in</property>
<child>
<object class="GtkTreeView" id="attach_process_tv">
<property name="visible">True</property>
@@ -58,9 +60,10 @@
<property name="visible">True</property>
<child>
<object class="GtkCheckButton" id="checkb_hide_paths">
+ <property name="label" translatable="yes">_Hide paths</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">_Hide paths</property>
+ <property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
@@ -68,13 +71,15 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
+ <property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="checkb_hide_params">
+ <property name="label" translatable="yes">Hide process para_meters</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">Hide process para_meters</property>
+ <property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
</object>
@@ -85,12 +90,16 @@
</packing>
</child>
</object>
+ <packing>
+ <property name="position">0</property>
+ </packing>
</child>
<child>
<object class="GtkCheckButton" id="checkb_process_tree">
+ <property name="label" translatable="yes">Display process _tree</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">Display process _tree</property>
+ <property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
</object>
@@ -110,6 +119,7 @@
</object>
<packing>
<property name="padding">5</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
@@ -121,12 +131,13 @@
<child internal-child="action_area">
<object class="GtkHButtonBox" id="dialog-action_area1">
<property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
+ <property name="layout_style">end</property>
<child>
<object class="GtkButton" id="attach_process_update_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
+ <property name="receives_default">False</property>
<child>
<object class="GtkAlignment" id="alignment2">
<property name="visible">True</property>
@@ -144,6 +155,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
+ <property name="position">0</property>
</packing>
</child>
<child>
@@ -163,6 +175,11 @@
</object>
</child>
</object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
</child>
<child>
<object class="GtkButton" id="attach_process_attach_button">
@@ -170,6 +187,7 @@
<property name="sensitive">False</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
+ <property name="receives_default">False</property>
<child>
<object class="GtkAlignment" id="alignment3">
<property name="visible">True</property>
@@ -187,6 +205,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
+ <property name="position">0</property>
</packing>
</child>
<child>
@@ -207,25 +226,31 @@
</child>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="button3">
+ <property name="label">gtk-close</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label">gtk-close</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">2</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
- <property name="pack_type">GTK_PACK_END</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
@@ -239,7 +264,7 @@
<object class="GtkDialog" id="breakpoints_dialog">
<property name="title" translatable="yes">Breakpoints</property>
<property name="default_width">550</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
+ <property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox2">
<property name="visible">True</property>
@@ -256,9 +281,9 @@
<object class="GtkScrolledWindow" id="scrolledwindow2">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="shadow_type">GTK_SHADOW_IN</property>
+ <property name="hscrollbar_policy">automatic</property>
+ <property name="vscrollbar_policy">automatic</property>
+ <property name="shadow_type">in</property>
<child>
<object class="GtkTreeView" id="breakpoints_tv">
<property name="visible">True</property>
@@ -268,6 +293,9 @@
</object>
</child>
</object>
+ <packing>
+ <property name="position">0</property>
+ </packing>
</child>
<child>
<object class="GtkVBox" id="vbox3">
@@ -276,85 +304,109 @@
<object class="GtkVButtonBox" id="vbuttonbox1">
<property name="visible">True</property>
<property name="spacing">5</property>
- <property name="layout_style">GTK_BUTTONBOX_START</property>
+ <property name="layout_style">start</property>
<child>
<object class="GtkButton" id="breakpoints_add_button">
+ <property name="label">gtk-add</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label">gtk-add</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
</child>
<child>
<object class="GtkButton" id="breakpoints_remove_button">
+ <property name="label">gtk-remove</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label">gtk-remove</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="breakpoints_jumpto_button">
+ <property name="label">gtk-jump-to</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label">gtk-jump-to</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkButton" id="breakpoints_properties_button">
+ <property name="label">gtk-properties</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label">gtk-properties</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">3</property>
</packing>
</child>
<child>
<object class="GtkButton" id="breakpoints_enableall_button">
+ <property name="label" translatable="yes">Enable _all</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label" translatable="yes">Enable _all</property>
+ <property name="receives_default">False</property>
<property name="use_underline">True</property>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">4</property>
</packing>
</child>
<child>
<object class="GtkButton" id="breakpoints_disableall_button">
+ <property name="label" translatable="yes">_Disable all</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label" translatable="yes">_Disable all</property>
+ <property name="receives_default">False</property>
<property name="use_underline">True</property>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">5</property>
</packing>
</child>
<child>
<object class="GtkButton" id="breakpoints_removeall_button">
+ <property name="label" translatable="yes">_Remove all</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label" translatable="yes">_Remove all</property>
+ <property name="receives_default">False</property>
<property name="use_underline">True</property>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">6</property>
</packing>
</child>
@@ -362,6 +414,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
@@ -372,6 +425,9 @@
</packing>
</child>
</object>
+ <packing>
+ <property name="position">0</property>
+ </packing>
</child>
</object>
<packing>
@@ -381,11 +437,12 @@
<child internal-child="action_area">
<object class="GtkHButtonBox" id="dialog-action_area2">
<property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
+ <property name="layout_style">end</property>
</object>
<packing>
<property name="expand">False</property>
- <property name="pack_type">GTK_PACK_END</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
@@ -394,8 +451,8 @@
<object class="GtkDialog" id="add_watch_dialog">
<property name="title" translatable="yes">Add Watch</property>
<property name="default_width">400</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
- <signal handler="gtk_widget_hide" name="close" object="breakpoint_property_dialog"/>
+ <property name="type_hint">dialog</property>
+ <signal name="close" handler="gtk_widget_hide" object="breakpoint_property_dialog"/>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox3">
<property name="visible">True</property>
@@ -409,9 +466,10 @@
<property name="row_spacing">6</property>
<child>
<object class="GtkCheckButton" id="auto_update_check">
+ <property name="label" translatable="yes">_Automatic update</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">_Automatic update</property>
+ <property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
</object>
@@ -420,7 +478,7 @@
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">GTK_FILL</property>
- <property name="y_options"/>
+ <property name="y_options"></property>
</packing>
</child>
<child>
@@ -431,7 +489,7 @@
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
- <property name="y_options"/>
+ <property name="y_options"></property>
</packing>
</child>
<child>
@@ -444,7 +502,7 @@
</object>
<packing>
<property name="x_options">GTK_FILL</property>
- <property name="y_options"/>
+ <property name="y_options"></property>
</packing>
</child>
</object>
@@ -455,34 +513,44 @@
<child internal-child="action_area">
<object class="GtkHButtonBox" id="dialog-action_area3">
<property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
+ <property name="layout_style">end</property>
<child>
<object class="GtkButton" id="cancel_button">
+ <property name="label">gtk-cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label">gtk-cancel</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
</child>
<child>
<object class="GtkButton" id="add_watch_add_button">
+ <property name="label">gtk-add</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
- <property name="label">gtk-add</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
- <property name="pack_type">GTK_PACK_END</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
@@ -495,8 +563,8 @@
<object class="GtkDialog" id="change_watch_dialog">
<property name="title" translatable="yes">Change Watch</property>
<property name="default_width">400</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
- <signal handler="gtk_widget_hide" name="close" object="breakpoint_property_dialog"/>
+ <property name="type_hint">dialog</property>
+ <signal name="close" handler="gtk_widget_hide" object="breakpoint_property_dialog"/>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox4">
<property name="visible">True</property>
@@ -521,7 +589,7 @@
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
- <property name="y_options"/>
+ <property name="y_options"></property>
</packing>
</child>
<child>
@@ -536,7 +604,7 @@
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
- <property name="y_options"/>
+ <property name="y_options"></property>
</packing>
</child>
<child>
@@ -551,7 +619,7 @@
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">GTK_FILL</property>
- <property name="y_options"/>
+ <property name="y_options"></property>
</packing>
</child>
<child>
@@ -564,7 +632,7 @@
</object>
<packing>
<property name="x_options">GTK_FILL</property>
- <property name="y_options"/>
+ <property name="y_options"></property>
</packing>
</child>
</object>
@@ -575,34 +643,44 @@
<child internal-child="action_area">
<object class="GtkHButtonBox" id="dialog-action_area4">
<property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
+ <property name="layout_style">end</property>
<child>
<object class="GtkButton" id="change_watch_close_button">
+ <property name="label">gtk-cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label">gtk-cancel</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
</child>
<child>
<object class="GtkButton" id="change_watch_evaluate_button">
+ <property name="label">gtk-apply</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
- <property name="label">gtk-apply</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
- <property name="pack_type">GTK_PACK_END</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
@@ -615,8 +693,8 @@
<object class="GtkDialog" id="watch_dialog">
<property name="title" translatable="yes">Inspect/Evaluate</property>
<property name="default_width">400</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
- <signal handler="gtk_widget_hide" name="close" object="breakpoint_property_dialog"/>
+ <property name="type_hint">dialog</property>
+ <signal name="close" handler="gtk_widget_hide" object="breakpoint_property_dialog"/>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox5">
<property name="visible">True</property>
@@ -624,9 +702,9 @@
<object class="GtkScrolledWindow" id="scrolledwindow31">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="shadow_type">GTK_SHADOW_IN</property>
+ <property name="hscrollbar_policy">automatic</property>
+ <property name="vscrollbar_policy">automatic</property>
+ <property name="shadow_type">in</property>
<child>
<object class="GtkTreeView" id="watch_value_treeview">
<property name="visible">True</property>
@@ -641,32 +719,42 @@
<child internal-child="action_area">
<object class="GtkHButtonBox" id="dialog-action_area5">
<property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
+ <property name="layout_style">end</property>
<child>
<object class="GtkButton" id="watch_close_button">
+ <property name="label">gtk-close</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label">gtk-close</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
</child>
<child>
<object class="GtkButton" id="watch_add_button">
+ <property name="label">gtk-add</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label">gtk-add</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
- <property name="pack_type">GTK_PACK_END</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
@@ -679,8 +767,8 @@
<object class="GtkDialog" id="inspect_evaluate_dialog">
<property name="title" translatable="yes">Inspect/Evaluate</property>
<property name="default_width">400</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
- <signal handler="gtk_widget_hide" name="close" object="breakpoint_property_dialog"/>
+ <property name="type_hint">dialog</property>
+ <signal name="close" handler="gtk_widget_hide" object="breakpoint_property_dialog"/>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox6">
<property name="visible">True</property>
@@ -693,9 +781,6 @@
<property name="column_spacing">6</property>
<property name="row_spacing">6</property>
<child>
- <placeholder/>
- </child>
- <child>
<object class="GtkLabel" id="inspect_evaluate_value_label">
<property name="visible">True</property>
<property name="xalign">0</property>
@@ -707,16 +792,16 @@
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">GTK_FILL</property>
- <property name="y_options"/>
+ <property name="y_options"></property>
</packing>
</child>
<child>
<object class="GtkScrolledWindow" id="scrolledwindow3">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="shadow_type">GTK_SHADOW_IN</property>
+ <property name="hscrollbar_policy">automatic</property>
+ <property name="vscrollbar_policy">automatic</property>
+ <property name="shadow_type">in</property>
<child>
<object class="GtkTreeView" id="inspect_evaluate_value_treeview">
<property name="visible">True</property>
@@ -741,6 +826,9 @@
<property name="has_focus">True</property>
<property name="activates_default">True</property>
</object>
+ <packing>
+ <property name="position">0</property>
+ </packing>
</child>
</object>
<packing>
@@ -759,9 +847,12 @@
</object>
<packing>
<property name="x_options">GTK_FILL</property>
- <property name="y_options"/>
+ <property name="y_options"></property>
</packing>
</child>
+ <child>
+ <placeholder/>
+ </child>
</object>
<packing>
<property name="position">2</property>
@@ -770,58 +861,74 @@
<child internal-child="action_area">
<object class="GtkHButtonBox" id="dialog-action_area6">
<property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
+ <property name="layout_style">end</property>
<child>
<object class="GtkButton" id="inspect_evaluate_close_button">
+ <property name="label">gtk-close</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label">gtk-close</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
</child>
<child>
<object class="GtkButton" id="inspect_button">
+ <property name="label">gtk-refresh</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
- <property name="label">gtk-refresh</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="inspect_evaluate_evaluate_button">
+ <property name="label">gtk-apply</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label">gtk-apply</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkButton" id="inspect_evaluate_add_button">
+ <property name="label">gtk-add</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label">gtk-add</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">3</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
- <property name="pack_type">GTK_PACK_END</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
@@ -836,8 +943,8 @@
<object class="GtkDialog" id="breakpoint_properties_dialog">
<property name="title" translatable="yes">Breakpoint properties</property>
<property name="default_width">400</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
- <signal handler="gtk_widget_hide" name="close" object="breakpoint_property_dialog"/>
+ <property name="type_hint">dialog</property>
+ <signal name="close" handler="gtk_widget_hide" object="breakpoint_property_dialog"/>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox7">
<property name="visible">True</property>
@@ -859,6 +966,9 @@
<property name="has_focus">True</property>
<property name="activates_default">True</property>
</object>
+ <packing>
+ <property name="position">0</property>
+ </packing>
</child>
<child>
<object class="GtkLabel" id="breakpoint_location_label">
@@ -890,7 +1000,7 @@
<property name="right_attach">2</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
- <property name="y_options"/>
+ <property name="y_options"></property>
</packing>
</child>
<child>
@@ -904,14 +1014,14 @@
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
- <property name="y_options"/>
+ <property name="y_options"></property>
</packing>
</child>
<child>
<object class="GtkLabel" id="breakpoint_pass_label">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property comments="This is the number of time that the program executes the line where a breakpoint is located. It is used as a list header, so I have tried to find a quite short name." name="label" translatable="yes">_Pass count:</property>
+ <property name="label" translatable="yes" comments="This is the number of time that the program executes the line where a breakpoint is located. It is used as a list header, so I have tried to find a quite short name.">_Pass count:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">breakpoint_pass_entry</property>
</object>
@@ -919,7 +1029,7 @@
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="x_options">GTK_FILL</property>
- <property name="y_options"/>
+ <property name="y_options"></property>
</packing>
</child>
<child>
@@ -934,7 +1044,7 @@
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">GTK_FILL</property>
- <property name="y_options"/>
+ <property name="y_options"></property>
</packing>
</child>
<child>
@@ -946,7 +1056,7 @@
</object>
<packing>
<property name="x_options">GTK_FILL</property>
- <property name="y_options"/>
+ <property name="y_options"></property>
</packing>
</child>
</object>
@@ -957,34 +1067,44 @@
<child internal-child="action_area">
<object class="GtkHButtonBox" id="dialog-action_area7">
<property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
+ <property name="layout_style">end</property>
<child>
<object class="GtkButton" id="cancelbutton1">
+ <property name="label">gtk-cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label">gtk-cancel</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
</child>
<child>
<object class="GtkButton" id="okbutton1">
+ <property name="label">gtk-ok</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
- <property name="label">gtk-ok</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
- <property name="pack_type">GTK_PACK_END</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
@@ -1015,13 +1135,14 @@
<child>
<object class="GtkArrow" id="arrow1">
<property name="visible">True</property>
- <property name="arrow_type">GTK_ARROW_UP</property>
+ <property name="arrow_type">up</property>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
+ <property name="position">0</property>
</packing>
</child>
<child>
@@ -1030,20 +1151,21 @@
<child>
<object class="GtkArrow" id="arrow2">
<property name="visible">True</property>
- <property name="arrow_type">GTK_ARROW_DOWN</property>
+ <property name="arrow_type">down</property>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
- <property name="pack_type">GTK_PACK_END</property>
+ <property name="pack_type">end</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
+ <property name="position">0</property>
</packing>
</child>
<child>
@@ -1071,7 +1193,7 @@
</object>
<packing>
<property name="expand">False</property>
- <property name="pack_type">GTK_PACK_END</property>
+ <property name="pack_type">end</property>
<property name="position">3</property>
</packing>
</child>
@@ -1087,11 +1209,14 @@
</object>
<packing>
<property name="expand">False</property>
- <property name="pack_type">GTK_PACK_END</property>
+ <property name="pack_type">end</property>
<property name="position">1</property>
</packing>
</child>
</object>
+ <packing>
+ <property name="position">0</property>
+ </packing>
</child>
<child>
<object class="GtkHSeparator" id="hseparator1">
@@ -1119,14 +1244,16 @@
<property name="visible">True</property>
<child>
<object class="GtkButton" id="button_inspect">
+ <property name="label" translatable="yes">Inspect</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label" translatable="yes">Inspect</property>
+ <property name="receives_default">False</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="fill">False</property>
+ <property name="position">0</property>
</packing>
</child>
<child>
@@ -1143,9 +1270,10 @@
</child>
<child>
<object class="GtkButton" id="button_quit">
+ <property name="label">gtk-quit</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label">gtk-quit</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
<packing>
@@ -1157,7 +1285,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
- <property name="pack_type">GTK_PACK_END</property>
+ <property name="pack_type">end</property>
<property name="position">2</property>
</packing>
</child>
@@ -1168,7 +1296,7 @@
<property name="title" translatable="yes">CPU Registers</property>
<property name="default_width">200</property>
<property name="default_height">400</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
+ <property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox19">
<property name="visible">True</property>
@@ -1177,9 +1305,9 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="border_width">5</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="shadow_type">GTK_SHADOW_IN</property>
+ <property name="hscrollbar_policy">automatic</property>
+ <property name="vscrollbar_policy">automatic</property>
+ <property name="shadow_type">in</property>
<child>
<object class="GtkTreeView" id="debugger.registers.tv">
<property name="visible">True</property>
@@ -1194,11 +1322,12 @@
<child internal-child="action_area">
<object class="GtkHButtonBox" id="dialog-action_area19">
<property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
+ <property name="layout_style">end</property>
</object>
<packing>
<property name="expand">False</property>
- <property name="pack_type">GTK_PACK_END</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
@@ -1208,7 +1337,7 @@
<property name="title" translatable="yes">Shared libraries</property>
<property name="default_width">300</property>
<property name="default_height">500</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
+ <property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox20">
<property name="visible">True</property>
@@ -1217,9 +1346,9 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="border_width">5</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="shadow_type">GTK_SHADOW_IN</property>
+ <property name="hscrollbar_policy">automatic</property>
+ <property name="vscrollbar_policy">automatic</property>
+ <property name="shadow_type">in</property>
<child>
<object class="GtkTreeView" id="debugger.sharedlibs.tv">
<property name="visible">True</property>
@@ -1234,11 +1363,12 @@
<child internal-child="action_area">
<object class="GtkHButtonBox" id="dialog-action_area20">
<property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
+ <property name="layout_style">end</property>
</object>
<packing>
<property name="expand">False</property>
- <property name="pack_type">GTK_PACK_END</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
@@ -1248,7 +1378,7 @@
<property name="title" translatable="yes">Kernel Signals</property>
<property name="default_width">500</property>
<property name="default_height">600</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
+ <property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox23">
<property name="visible">True</property>
@@ -1256,8 +1386,8 @@
<object class="GtkScrolledWindow" id="scrolledwindow29">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
+ <property name="hscrollbar_policy">automatic</property>
+ <property name="vscrollbar_policy">automatic</property>
<child>
<object class="GtkTreeView" id="debugger.signals.tv">
<property name="visible">True</property>
@@ -1272,20 +1402,27 @@
<child internal-child="action_area">
<object class="GtkHButtonBox" id="dialog-action_area23">
<property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
+ <property name="layout_style">end</property>
<child>
<object class="GtkButton" id="closebutton7">
+ <property name="label">gtk-close</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label">gtk-close</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
</child>
</object>
<packing>
<property name="expand">False</property>
- <property name="pack_type">GTK_PACK_END</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
@@ -1299,7 +1436,7 @@
<property name="height_request">180</property>
<property name="title" translatable="yes">Set Signal Property</property>
<property name="resizable">False</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
+ <property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox24">
<property name="visible">True</property>
@@ -1316,6 +1453,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
+ <property name="position">0</property>
</packing>
</child>
<child>
@@ -1349,6 +1487,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
+ <property name="position">0</property>
</packing>
</child>
<child>
@@ -1388,9 +1527,10 @@
<property name="row_spacing">10</property>
<child>
<object class="GtkToggleButton" id="toggle.pass">
+ <property name="label" translatable="yes">Yes</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">Yes</property>
+ <property name="receives_default">False</property>
<property name="use_underline">True</property>
</object>
<packing>
@@ -1399,14 +1539,15 @@
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">GTK_FILL</property>
- <property name="y_options"/>
+ <property name="y_options"></property>
</packing>
</child>
<child>
<object class="GtkToggleButton" id="toggle.print">
+ <property name="label" translatable="yes">Yes</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">Yes</property>
+ <property name="receives_default">False</property>
<property name="use_underline">True</property>
</object>
<packing>
@@ -1415,21 +1556,22 @@
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">GTK_FILL</property>
- <property name="y_options"/>
+ <property name="y_options"></property>
</packing>
</child>
<child>
<object class="GtkToggleButton" id="toggle.stop">
+ <property name="label" translatable="yes">Yes</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">Yes</property>
+ <property name="receives_default">False</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">GTK_FILL</property>
- <property name="y_options"/>
+ <property name="y_options"></property>
</packing>
</child>
<child>
@@ -1441,7 +1583,7 @@
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
- <property name="y_options"/>
+ <property name="y_options"></property>
</packing>
</child>
<child>
@@ -1453,7 +1595,7 @@
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
- <property name="y_options"/>
+ <property name="y_options"></property>
</packing>
</child>
<child>
@@ -1463,7 +1605,7 @@
<property name="label" translatable="yes">Stop:</property>
</object>
<packing>
- <property name="y_options"/>
+ <property name="y_options"></property>
</packing>
</child>
</object>
@@ -1474,32 +1616,42 @@
<child internal-child="action_area">
<object class="GtkHButtonBox" id="dialog-action_area24">
<property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
+ <property name="layout_style">end</property>
<child>
<object class="GtkButton" id="closebutton8">
+ <property name="label">gtk-cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label">gtk-cancel</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
</child>
<child>
<object class="GtkButton" id="button34">
+ <property name="label">gtk-ok</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label">gtk-ok</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
- <property name="pack_type">GTK_PACK_END</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
@@ -1510,11 +1662,12 @@
</action-widgets>
</object>
<object class="GtkDialog" id="debugger_start_dialog">
+ <property name="border_width">6</property>
<property name="title" translatable="yes">Start Debugger</property>
- <property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property>
+ <property name="window_position">center-on-parent</property>
<property name="default_width">400</property>
<property name="default_height">300</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
+ <property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox25">
<property name="visible">True</property>
@@ -1523,7 +1676,7 @@
<property name="visible">True</property>
<property name="border_width">5</property>
<property name="label_xalign">0</property>
- <property name="shadow_type">GTK_SHADOW_NONE</property>
+ <property name="shadow_type">none</property>
<child>
<object class="GtkAlignment" id="alignment11">
<property name="visible">True</property>
@@ -1533,9 +1686,9 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="border_width">5</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="shadow_type">GTK_SHADOW_IN</property>
+ <property name="hscrollbar_policy">automatic</property>
+ <property name="vscrollbar_policy">automatic</property>
+ <property name="shadow_type">in</property>
<child>
<object class="GtkTreeView" id="programs_treeview">
<property name="visible">True</property>
@@ -1561,32 +1714,42 @@
<child internal-child="action_area">
<object class="GtkHButtonBox" id="dialog-action_area25">
<property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
+ <property name="layout_style">end</property>
<child>
<object class="GtkButton" id="cancelbutton5">
+ <property name="label">gtk-cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label">gtk-cancel</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
</child>
<child>
<object class="GtkButton" id="okbutton4">
+ <property name="label">gtk-ok</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label">gtk-ok</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
- <property name="pack_type">GTK_PACK_END</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
@@ -1597,10 +1760,11 @@
</action-widgets>
</object>
<object class="GtkDialog" id="debugger_command_dialog">
+ <property name="border_width">6</property>
<property name="title" translatable="yes">Debugger command</property>
- <property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property>
+ <property name="window_position">center-on-parent</property>
<property name="destroy_with_parent">True</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
+ <property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox14">
<property name="visible">True</property>
@@ -1617,6 +1781,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
+ <property name="position">0</property>
</packing>
</child>
<child>
@@ -1638,20 +1803,27 @@
<child internal-child="action_area">
<object class="GtkHButtonBox" id="dialog-action_area14">
<property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
+ <property name="layout_style">end</property>
<child>
<object class="GtkButton" id="closebutton9">
+ <property name="label">gtk-close</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="label">gtk-close</property>
+ <property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
</child>
</object>
<packing>
<property name="expand">False</property>
- <property name="pack_type">GTK_PACK_END</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
@@ -1662,10 +1834,10 @@
</object>
<object class="GtkDialog" id="source_paths_dialog">
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
- <property name="border_width">5</property>
+ <property name="border_width">6</property>
<property name="title" translatable="yes">Source Directories</property>
- <property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
+ <property name="window_position">center-on-parent</property>
+ <property name="type_hint">dialog</property>
<property name="skip_pager_hint">True</property>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox16">
@@ -1687,9 +1859,9 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="shadow_type">GTK_SHADOW_IN</property>
+ <property name="hscrollbar_policy">automatic</property>
+ <property name="vscrollbar_policy">automatic</property>
+ <property name="shadow_type">in</property>
<child>
<object class="GtkTreeView" id="src_clist">
<property name="visible">True</property>
@@ -1708,7 +1880,7 @@
<property name="visible">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="border_width">1</property>
- <property name="action">GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER</property>
+ <property name="action">select-folder</property>
<property name="title" translatable="yes">Select one directory</property>
</object>
<packing>
@@ -1717,11 +1889,11 @@
</child>
<child>
<object class="GtkButton" id="source_paths_add_button">
+ <property name="label">gtk-add</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
- <property name="label">gtk-add</property>
<property name="use_stock">True</property>
</object>
<packing>
@@ -1738,25 +1910,26 @@
<property name="spacing">5</property>
<child>
<object class="GtkButton" id="remove_button">
+ <property name="label">gtk-remove</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
- <property name="label">gtk-remove</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
+ <property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="up_button">
+ <property name="label">gtk-go-up</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
- <property name="label">gtk-go-up</property>
<property name="use_stock">True</property>
</object>
<packing>
@@ -1767,11 +1940,11 @@
</child>
<child>
<object class="GtkButton" id="down_button">
+ <property name="label">gtk-go-down</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
- <property name="label">gtk-go-down</property>
<property name="use_stock">True</property>
</object>
<packing>
@@ -1798,34 +1971,42 @@
<object class="GtkHButtonBox" id="dialog-action_area16">
<property name="visible">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
+ <property name="layout_style">end</property>
<child>
<object class="GtkButton" id="button6">
+ <property name="label">gtk-redo</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
- <property name="label">gtk-redo</property>
<property name="use_stock">True</property>
</object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
</child>
<child>
<object class="GtkButton" id="button7">
+ <property name="label">gtk-close</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
- <property name="label">gtk-close</property>
<property name="use_stock">True</property>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
- <property name="pack_type">GTK_PACK_END</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
@@ -1836,10 +2017,10 @@
</action-widgets>
</object>
<object class="GtkDialog" id="remote_dialog">
- <property name="border_width">5</property>
+ <property name="border_width">6</property>
<property name="title" translatable="yes">Connect to remote target</property>
- <property name="window_position">GTK_WIN_POS_CENTER_ALWAYS</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
+ <property name="window_position">center-always</property>
+ <property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox17">
<property name="visible">True</property>
@@ -1850,15 +2031,17 @@
<property name="spacing">6</property>
<child>
<object class="GtkRadioButton" id="tcpip_radio">
+ <property name="label" translatable="yes">TCP/IP Connection</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">TCP/IP Connection</property>
+ <property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
+ <property name="position">0</property>
</packing>
</child>
<child>
@@ -1876,6 +2059,9 @@
<property name="xalign">0</property>
<property name="label" translatable="yes">Address:</property>
</object>
+ <packing>
+ <property name="position">0</property>
+ </packing>
</child>
<child>
<object class="GtkEntry" id="tcpip_address_entry">
@@ -1916,9 +2102,10 @@
</child>
<child>
<object class="GtkRadioButton" id="serial_radio">
+ <property name="label" translatable="yes">Serial Line Connection</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">Serial Line Connection</property>
+ <property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<property name="group">tcpip_radio</property>
@@ -1953,44 +2140,54 @@
<child internal-child="action_area">
<object class="GtkHButtonBox" id="dialog-action_area17">
<property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
+ <property name="layout_style">end</property>
<child>
<object class="GtkButton" id="button2">
+ <property name="label">gtk-cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
- <property name="label">gtk-cancel</property>
<property name="use_stock">True</property>
</object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
</child>
<child>
<object class="GtkButton" id="button5">
+ <property name="label">gtk-apply</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
- <property name="label">gtk-apply</property>
<property name="use_stock">True</property>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="button1">
+ <property name="label">gtk-connect</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
- <property name="label">gtk-connect</property>
<property name="use_stock">True</property>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">2</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
- <property name="pack_type">GTK_PACK_END</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
@@ -2012,7 +2209,7 @@
<property name="visible">True</property>
<property name="border_width">10</property>
<property name="label_xalign">0</property>
- <property name="shadow_type">GTK_SHADOW_NONE</property>
+ <property name="shadow_type">none</property>
<child>
<object class="GtkAlignment" id="alignment6">
<property name="visible">True</property>
@@ -2025,19 +2222,24 @@
<property name="spacing">6</property>
<child>
<object class="GtkRadioButton" id="local_radio">
+ <property name="label" translatable="yes">Disable</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="receives_default">False</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
- <property name="label" translatable="yes">Disable</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
</object>
+ <packing>
+ <property name="position">0</property>
+ </packing>
</child>
<child>
<object class="GtkRadioButton" id="preferences_toggle:bool:0:0:debug.manager.tcp.connection">
+ <property name="label" translatable="yes">TCP/IP Connection</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">TCP/IP Connection</property>
+ <property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<property name="group">local_radio</property>
@@ -2063,6 +2265,9 @@
<property name="xalign">0</property>
<property name="label" translatable="yes">Address:</property>
</object>
+ <packing>
+ <property name="position">0</property>
+ </packing>
</child>
<child>
<object class="GtkEntry" id="preferences_entry:text::0:debug.manager.tcp.address">
@@ -2103,9 +2308,10 @@
</child>
<child>
<object class="GtkRadioButton" id="preferences_toggle:bool:0:0:debug.manager.serial.connection">
+ <property name="label" translatable="yes">Serial Line Connection</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">Serial Line Connection</property>
+ <property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<property name="group">local_radio</property>
@@ -2149,6 +2355,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
+ <property name="position">0</property>
</packing>
</child>
<child>
@@ -2157,4 +2364,124 @@
</object>
</child>
</object>
+ <object class="GtkDialog" id="check_debug_dialog">
+ <property name="border_width">6</property>
+ <property name="resizable">False</property>
+ <property name="modal">True</property>
+ <property name="window_position">center</property>
+ <property name="type_hint">dialog</property>
+ <property name="skip_taskbar_hint">True</property>
+ <property name="has_separator">False</property>
+ <child internal-child="vbox">
+ <object class="GtkVBox" id="dialog-vbox16">
+ <property name="visible">True</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">12</property>
+ <child>
+ <object class="GtkHBox" id="hbox1">
+ <property name="visible">True</property>
+ <property name="border_width">6</property>
+ <property name="spacing">12</property>
+ <child>
+ <object class="GtkImage" id="image1">
+ <property name="visible">True</property>
+ <property name="yalign">0</property>
+ <property name="stock">gtk-dialog-warning</property>
+ <property name="icon-size">6</property>
+ </object>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkVBox" id="vbox1">
+ <property name="visible">True</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">12</property>
+ <child>
+ <object class="GtkLabel" id="label1">
+ <property name="visible">True</property>
+ <property name="ypad">3</property>
+ <property name="label" translatable="yes"><span weight="bold" size="larger">Are you sure you want to debug a program not using the Debug configuration ?</span>
+
+When optimizations are enabled, the debugger cannot always identify the source code corresponding to the instructions, some commands can perform in a strange way, especially steps.</property>
+ <property name="use_markup">True</property>
+ <property name="wrap">True</property>
+ <property name="selectable">True</property>
+ </object>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="hide_checkbox">
+ <property name="label" translatable="yes">Do not show again</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child internal-child="action_area">
+ <object class="GtkHButtonBox" id="dialog-action_area16">
+ <property name="visible">True</property>
+ <property name="layout_style">end</property>
+ <child>
+ <object class="GtkButton" id="button2">
+ <property name="label" translatable="yes">gtk-cancel</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="button1">
+ <property name="label" translatable="yes">gtk-execute</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="has_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="has_default">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ <action-widgets>
+ <action-widget response="-6">button2</action-widget>
+ <action-widget response="-5">button1</action-widget>
+ </action-widgets>
+ </object>
</interface>
diff --git a/plugins/debug-manager/start.c b/plugins/debug-manager/start.c
index ac4a4f8..411713f 100644
--- a/plugins/debug-manager/start.c
+++ b/plugins/debug-manager/start.c
@@ -42,6 +42,8 @@
#include <libanjuta/interfaces/ianjuta-file-savable.h>
#include <libanjuta/anjuta-utils.h>
+#include <gconf/gconf-client.h>
+
#include <gio/gio.h>
#include <glib/gi18n.h>
#include <stdlib.h>
@@ -150,6 +152,9 @@ struct _DmaStart
#define SERIAL_RADIO "serial_radio"
#define SERIAL_CONTAINER "serial_container"
+#define CHECK_DEBUG_DIALOG "check_debug_dialog"
+#define DO_NOT_SHOW_CHECK "hide_checkbox"
+
/* Constants
*---------------------------------------------------------------------------*/
@@ -162,6 +167,8 @@ struct _DmaStart
#define RUN_PROGRAM_ACTION_GROUP "ActionGroupRun"
#define RUN_PROGRAM_PARAMETER_ACTION "ActionProgramParameters"
+#define GCONF_NOT_CHECK_DEBUG "/apps/anjuta/debug_manager/silent_non_debug_config"
+
static void attach_process_clear (AttachProcess * ap, gint ClearRequest);
/* Helper functions
@@ -826,6 +833,55 @@ attach_process_destroy (AttachProcess * ap)
g_free (ap);
}
+/* Check debug configuration dialog
+ *---------------------------------------------------------------------------*/
+
+static gboolean
+show_check_debug_dialog (DmaStart *this)
+{
+ GConfClient *client;
+ GtkBuilder *bxml = gtk_builder_new ();
+ GtkWindow *parent;
+ GtkWidget *dialog;
+ GtkToggleButton *do_not_show;
+ gboolean no_check_debug;
+ GError* error = NULL;
+ gint res = GTK_RESPONSE_OK;
+
+ client = gconf_client_get_default ();
+ no_check_debug = gconf_client_get_bool (client, GCONF_NOT_CHECK_DEBUG, NULL);
+
+ if (!no_check_debug)
+ {
+ parent = GTK_WINDOW (this->plugin->shell);
+
+ if (!gtk_builder_add_from_file (bxml, GLADE_FILE, &error))
+ {
+ g_warning ("Couldn't load builder file: %s", error->message);
+ anjuta_util_dialog_error(parent, _("Missing file %s"), GLADE_FILE);
+ g_error_free (error);
+ return FALSE;
+ }
+
+ /* Fetch out the widget we care about for now */
+ dialog = GTK_WIDGET (gtk_builder_get_object (bxml, CHECK_DEBUG_DIALOG));
+ do_not_show = GTK_TOGGLE_BUTTON (gtk_builder_get_object (bxml, DO_NOT_SHOW_CHECK));
+ g_object_unref (bxml);
+
+ res = gtk_dialog_run (GTK_DIALOG (dialog));
+
+ if (gtk_toggle_button_get_active (do_not_show))
+ {
+ gconf_client_set_bool (client, GCONF_NOT_CHECK_DEBUG, TRUE, NULL);
+ }
+
+ gtk_widget_destroy (dialog);
+ }
+
+ return res == GTK_RESPONSE_OK;
+}
+
+
/* Load file private functions
*---------------------------------------------------------------------------*/
@@ -989,6 +1045,9 @@ check_target (DmaStart *this, const gchar *target)
builder = anjuta_shell_get_interface (this->plugin->shell, IAnjutaBuilder, NULL);
if (builder != NULL)
{
+ GList *cfg_list;
+ GList *found;
+
if (this->build_target)
{
/* a build operation is currently running */
@@ -1003,6 +1062,17 @@ check_target (DmaStart *this, const gchar *target)
ianjuta_builder_cancel (builder, this->build_handle, NULL);
}
}
+
+ /* Check if debug configuration is used */
+ cfg_list = ianjuta_builder_list_configuration (builder, NULL);
+ found = g_list_find_custom(cfg_list, IANJUTA_BUILDER_CONFIGURATION_DEBUG, (GCompareFunc)strcmp);
+ if (found != NULL)
+ {
+ if (ianjuta_builder_get_uri_configuration (builder, target, NULL) != (const gchar *)found)
+ {
+ if (!show_check_debug_dialog (this)) return FALSE;
+ }
+ }
this->build_target = g_strdup (target);
@@ -1319,6 +1389,7 @@ add_source_show (DmaStart *this)
gtk_widget_destroy (widget);
}
+
/* Public functions
*---------------------------------------------------------------------------*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]