[gnome-builder] libide/gui: move debug code to session file
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide/gui: move debug code to session file
- Date: Sat, 17 Sep 2022 03:05:52 +0000 (UTC)
commit 724200ab9e1e38afe6c4c325d121b56c16d546c9
Author: Christian Hergert <chergert redhat com>
Date: Fri Sep 16 20:05:46 2022 -0700
libide/gui: move debug code to session file
src/libide/gui/ide-workspace-session.c | 40 ++++++++++++++++++++++++++++++++++
src/libide/gui/ide-workspace.c | 40 ----------------------------------
2 files changed, 40 insertions(+), 40 deletions(-)
---
diff --git a/src/libide/gui/ide-workspace-session.c b/src/libide/gui/ide-workspace-session.c
index 22a00975d..be2b3ea10 100644
--- a/src/libide/gui/ide-workspace-session.c
+++ b/src/libide/gui/ide-workspace-session.c
@@ -34,6 +34,46 @@
#include "ide-workspace-addin.h"
#include "ide-workspace-private.h"
+G_GNUC_UNUSED static void
+dump_position (PanelPosition *position)
+{
+ GString *str = g_string_new (NULL);
+
+ if (panel_position_get_area_set (position))
+ {
+ PanelArea area = panel_position_get_area (position);
+ g_autoptr(GEnumClass) klass = g_type_class_ref (PANEL_TYPE_AREA);
+ GEnumValue *value = g_enum_get_value (klass, area);
+
+ g_string_append_printf (str, "area=%s ", value->value_nick);
+ }
+
+ if (panel_position_get_column_set (position))
+ {
+ guint column = panel_position_get_column (position);
+ g_string_append_printf (str, "column=%d ", column);
+ }
+
+ if (panel_position_get_row_set (position))
+ {
+ guint row = panel_position_get_row (position);
+ g_string_append_printf (str, "row=%d ", row);
+ }
+
+ if (panel_position_get_depth_set (position))
+ {
+ guint depth = panel_position_get_depth (position);
+ g_string_append_printf (str, "depth=%d ", depth);
+ }
+
+ if (str->len == 0)
+ g_print ("Empty Position\n");
+ else
+ g_print ("%s\n", str->str);
+
+ g_string_free (str, TRUE);
+}
+
static void
ide_workspace_addin_save_session_cb (IdeExtensionSetAdapter *adapter,
PeasPluginInfo *plugin_info,
diff --git a/src/libide/gui/ide-workspace.c b/src/libide/gui/ide-workspace.c
index 891bc97c8..2855abb18 100644
--- a/src/libide/gui/ide-workspace.c
+++ b/src/libide/gui/ide-workspace.c
@@ -127,46 +127,6 @@ G_DEFINE_ABSTRACT_TYPE_WITH_CODE (IdeWorkspace, ide_workspace, ADW_TYPE_APPLICAT
static GParamSpec *properties [N_PROPS];
static GSettings *settings;
-G_GNUC_UNUSED static void
-dump_position (PanelPosition *position)
-{
- GString *str = g_string_new (NULL);
-
- if (panel_position_get_area_set (position))
- {
- PanelArea area = panel_position_get_area (position);
- g_autoptr(GEnumClass) klass = g_type_class_ref (PANEL_TYPE_AREA);
- GEnumValue *value = g_enum_get_value (klass, area);
-
- g_string_append_printf (str, "area=%s ", value->value_nick);
- }
-
- if (panel_position_get_column_set (position))
- {
- guint column = panel_position_get_column (position);
- g_string_append_printf (str, "column=%d ", column);
- }
-
- if (panel_position_get_row_set (position))
- {
- guint row = panel_position_get_row (position);
- g_string_append_printf (str, "row=%d ", row);
- }
-
- if (panel_position_get_depth_set (position))
- {
- guint depth = panel_position_get_depth (position);
- g_string_append_printf (str, "depth=%d ", depth);
- }
-
- if (str->len == 0)
- g_print ("Empty Position\n");
- else
- g_print ("%s\n", str->str);
-
- g_string_free (str, TRUE);
-}
-
static void
ide_workspace_attach_shortcuts (IdeWorkspace *self,
GtkWidget *widget)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]