[gnome-builder] pnl: fix warning about action-target
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] pnl: fix warning about action-target
- Date: Fri, 14 Apr 2017 22:10:12 +0000 (UTC)
commit d8e71200e8c8f74a9ec9bc1371b0c541d19a230b
Author: Christian Hergert <chergert redhat com>
Date: Fri Apr 14 15:09:32 2017 -0700
pnl: fix warning about action-target
This is fine to set by default, it will get changed after adding the
tab widget to the proper value.
contrib/pnl/pnl-tab-strip.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/contrib/pnl/pnl-tab-strip.c b/contrib/pnl/pnl-tab-strip.c
index ddb8479..e50b1c4 100644
--- a/contrib/pnl/pnl-tab-strip.c
+++ b/contrib/pnl/pnl-tab-strip.c
@@ -63,8 +63,6 @@ set_tab_state (GSimpleAction *action,
nth_child = g_list_nth_data (list, stateval);
g_clear_pointer (&list, g_list_free);
- g_print ("set_tab_state(%d)\n", stateval);
-
if (nth_child != NULL)
{
tab = g_object_get_data (G_OBJECT (nth_child), "PNL_TAB");
@@ -367,6 +365,7 @@ pnl_tab_strip_stack_add (PnlTabStrip *self,
GtkStack *stack)
{
PnlTabStripPrivate *priv = pnl_tab_strip_get_instance_private (self);
+ g_autoptr(GVariant) target = g_variant_ref_sink (g_variant_new_int32 (0));
PnlTab *tab;
g_assert (PNL_IS_TAB_STRIP (self));
@@ -375,6 +374,7 @@ pnl_tab_strip_stack_add (PnlTabStrip *self,
tab = g_object_new (PNL_TYPE_TAB,
"action-name", "tab-strip.tab",
+ "action-target", target,
"edge", priv->edge,
"widget", widget,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]