[gnome-builder] build-tools: fix configuration selection
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] build-tools: fix configuration selection
- Date: Tue, 28 Jun 2016 00:24:34 +0000 (UTC)
commit 7b308c60f0849ba31222dadc3c44dc78333a60df
Author: Christian Hergert <chergert redhat com>
Date: Mon Jun 27 17:24:23 2016 -0700
build-tools: fix configuration selection
This moved to a getter from the GObject data.
plugins/build-tools/gbp-build-perspective.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plugins/build-tools/gbp-build-perspective.c b/plugins/build-tools/gbp-build-perspective.c
index 9f45d7f..0ae18dc 100644
--- a/plugins/build-tools/gbp-build-perspective.c
+++ b/plugins/build-tools/gbp-build-perspective.c
@@ -393,11 +393,14 @@ find_configuration_row (GtkWidget *widget,
IdeConfiguration *config;
GtkWidget *row;
} *lookup = data;
+ GbpBuildConfigurationRow *row = (GbpBuildConfigurationRow *)widget;
+
+ g_assert (GBP_IS_BUILD_CONFIGURATION_ROW (row));
if (lookup->row != NULL)
return;
- if (lookup->config == g_object_get_data (G_OBJECT (widget), "IDE_CONFIGURATION"))
+ if (lookup->config == gbp_build_configuration_row_get_configuration (row))
lookup->row = widget;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]