[gtk+/toolpalette] toolpalette: allow to reset same adjustment
- From: Johannes Schmid <jhs src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/toolpalette] toolpalette: allow to reset same adjustment
- Date: Wed, 11 Nov 2009 08:43:24 +0000 (UTC)
commit fe216c93676e04e2e1c125b154318a80b2159c5b
Author: Johannes Schmid <jhs gnome org>
Date: Wed Nov 11 09:33:49 2009 +0100
toolpalette: allow to reset same adjustment
gtk/gtktoolpalette.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtktoolpalette.c b/gtk/gtktoolpalette.c
index 346ba95..26e28f9 100644
--- a/gtk/gtktoolpalette.c
+++ b/gtk/gtktoolpalette.c
@@ -685,16 +685,16 @@ gtk_tool_palette_set_scroll_adjustments (GtkWidget *widget,
{
GtkToolPalette *palette = GTK_TOOL_PALETTE (widget);
- if (palette->priv->hadjustment)
- g_object_unref (palette->priv->hadjustment);
- if (palette->priv->vadjustment)
- g_object_unref (palette->priv->vadjustment);
-
if (hadjustment)
g_object_ref_sink (hadjustment);
if (vadjustment)
g_object_ref_sink (vadjustment);
+ if (palette->priv->hadjustment)
+ g_object_unref (palette->priv->hadjustment);
+ if (palette->priv->vadjustment)
+ g_object_unref (palette->priv->vadjustment);
+
palette->priv->hadjustment = hadjustment;
palette->priv->vadjustment = vadjustment;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]