diff options
author | Alexander Larsson <alla@lysator.liu.se> | 2001-05-17 16:22:06 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2001-05-17 16:22:06 +0000 |
commit | 6ee1ae13adafbb6a0ac5a75a948f0a9bc8f0e751 (patch) | |
tree | bd9689851eabea933a0ef00c0ad9c97c376b62cd /gtk/gtkvscale.c | |
parent | be277ae41303b9d5ba92a911360e66f197c82eba (diff) | |
download | gtk+-6ee1ae13adafbb6a0ac5a75a948f0a9bc8f0e751.tar.gz |
Add properties, based on patch by Lee Mallabone.GTK_MULTIHEAD_MERGE1
2001-05-17 Alexander Larsson <alla@lysator.liu.se>
* gtk/gtkbbox.c:
Add properties, based on patch by Lee Mallabone.
* gtk/gtknotebook.c:
* gtk/gtktoolbar.c:
Convert from GtkArg to GParam, based on patch by John Margaglione.
* gtk/gtkhscale.c:
* gtk/gtkvscale.c:
* gtk/gtkhscrollbar.c:
* gtk/gtkvscrollbar.c:
* gtk/gtkrange.c:
Move adjustment property to GtkRange.
* gtk/gtklabel.c:
Setup mnemonics on property changes
* gtk/gtkwidget.c (gtk_widget_get_property):
GdkExtensionMode is an enum, not a flag. Set it with
g_value_set_enum ().
* tests/prop-editor.c:
Better propery editor.
* tests/testgtk.c:
Add new property test. Pass zero to the property editor to
get properties from all derived types.
Diffstat (limited to 'gtk/gtkvscale.c')
-rw-r--r-- | gtk/gtkvscale.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/gtk/gtkvscale.c b/gtk/gtkvscale.c index be31ec3378..d233e985e0 100644 --- a/gtk/gtkvscale.c +++ b/gtk/gtkvscale.c @@ -36,8 +36,7 @@ #define RANGE_CLASS(w) GTK_RANGE_GET_CLASS (w) enum { - PROP_0, - PROP_ADJUSTMENT + PROP_0 }; static void gtk_vscale_class_init (GtkVScaleClass *klass); @@ -131,14 +130,6 @@ gtk_vscale_class_init (GtkVScaleClass *class) scale_class->draw_value = gtk_vscale_draw_value; - g_object_class_install_property (gobject_class, - PROP_ADJUSTMENT, - g_param_spec_object ("adjustment", - _("Adjustment"), - _("The GtkAdjustment that determines the values to use for this VScale."), - GTK_TYPE_ADJUSTMENT, - G_PARAM_READWRITE)); - binding_set = gtk_binding_set_by_class (object_class); add_slider_binding (binding_set, GDK_Up, 0, @@ -204,9 +195,6 @@ gtk_vscale_set_property (GObject *object, switch (prop_id) { - case PROP_ADJUSTMENT: - gtk_range_set_adjustment (GTK_RANGE (vscale), g_value_get_object (value)); - break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; @@ -225,10 +213,6 @@ gtk_vscale_get_property (GObject *object, switch (prop_id) { - case PROP_ADJUSTMENT: - g_value_set_object (value, - G_OBJECT (gtk_range_get_adjustment (GTK_RANGE (vscale)))); - break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; |