Fix reference handling in GtkScaleButton

We were leaking the adjustment, since we confuse ourselves
with a property whose initial value comes out of a template.
Stop doing that.

https://bugzilla.gnome.org/show_bug.cgi?id=775212
This commit is contained in:
Matthias Clasen
2016-11-28 15:00:10 -05:00
parent cf4fd0d3e3
commit 17ec4f10e4
2 changed files with 3 additions and 8 deletions

View File

@ -15,11 +15,6 @@
</object>
</child>
</template>
<object class="GtkAdjustment" id="adjustment">
<property name="upper">100</property>
<property name="step-increment">2</property>
<property name="page-increment">20</property>
</object>
<object class="GtkPopover" id="dock">
<signal name="map" handler="cb_popup_mapped" swapped="no"/>
<style>
@ -63,7 +58,6 @@
<property name="visible">1</property>
<property name="can-focus">1</property>
<property name="orientation">vertical</property>
<property name="adjustment">adjustment</property>
<property name="inverted">1</property>
<property name="round-digits">1</property>
<property name="draw-value">0</property>