forked from AuroraMiddleware/gtk
toolpalette: allow to reset same adjustment
This commit is contained in:
parent
3b2ae9dc3e
commit
fe216c9367
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user