After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 607082 - Add accessors for sealed GtkRange members
Add accessors for sealed GtkRange members
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 597610
 
 
Reported: 2010-01-15 15:27 UTC by Michael Natterer
Modified: 2011-02-04 16:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Accessors needed to implement GimpColorScale (5.40 KB, patch)
2010-01-15 15:31 UTC, Michael Natterer
committed Details | Review

Description Michael Natterer 2010-01-15 15:27:17 UTC
In order to properly subclass GtkRange, we need a lot of accessors, will
attach patches.
Comment 1 Michael Natterer 2010-01-15 15:31:53 UTC
Created attachment 151479 [details] [review]
Accessors needed to implement GimpColorScale

AFAICS, the only missing thing now is accessors for
range->has_stepper_a,b,c,d, which are clearly needed
by other subclasses out there.
Comment 2 Sven Herzberg 2010-01-15 16:08:37 UTC
Looks fine to me.
Comment 3 Matthias Clasen 2010-01-15 17:10:52 UTC
Review of attachment 151479 [details] [review]:

Did we decide against making such only-for-subclassing things properties ?
Unless we did, it looks slightly odd to add all these getters and setters without the properties themselves.
Comment 4 Michael Natterer 2010-01-15 20:04:06 UTC
I don't know if we decided anything, but in this particular case I
don't see much use for changing the two added "properties" at all
after object creation, let alone having notification on them.
Comment 5 Matthias Clasen 2010-01-17 02:49:39 UTC
Ok then, go ahead.
Comment 6 Michael Natterer 2010-01-22 15:56:20 UTC
Committed:

commit 35a2b6532854251f5aed2eba22549f12154a805e
Author: Michael Natterer <mitch@gimp.org>
Date:   Fri Jan 22 16:52:56 2010 +0100

     Bug 607082 - Add accessors for sealed GtkRange members
    
    Add accessors for range->range_rect, range->slider_range,
    range->slider_size_fixed and range->min_slider_size. Didn't add
    properties for any of them because thir purpose is mostly to enable
    proper subclassing.

 gtk/gtk.symbols |    6 ++
 gtk/gtkrange.c  |  149 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 gtk/gtkrange.h  |   14 +++++
 3 files changed, 169 insertions(+), 0 deletions(-)


Not closing as FIXED because there is still stuff to do in GtkRange.
Comment 7 Javier Jardón (IRC: jjardon) 2010-12-09 03:39:06 UTC
Mitch: What is the remaining work in GtkRange?
Comment 8 Michael Natterer 2010-12-09 08:15:17 UTC
To be honest, I don't remember :) Just get rid of the bug.
Comment 9 Javier Jardón (IRC: jjardon) 2010-12-14 21:49:30 UTC
Closing then ;)