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/gtkhscrollbar.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/gtkhscrollbar.c')
-rw-r--r-- | gtk/gtkhscrollbar.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/gtk/gtkhscrollbar.c b/gtk/gtkhscrollbar.c index 63fc1c6cc8..9ec6f22c48 100644 --- a/gtk/gtkhscrollbar.c +++ b/gtk/gtkhscrollbar.c @@ -35,8 +35,7 @@ #define RANGE_CLASS(w) GTK_RANGE_GET_CLASS (w) enum { - PROP_0, - PROP_ADJUSTMENT + PROP_0 }; static void gtk_hscrollbar_class_init (GtkHScrollbarClass *klass); @@ -109,15 +108,6 @@ gtk_hscrollbar_class_init (GtkHScrollbarClass *class) range_class->slider_update = gtk_hscrollbar_slider_update; range_class->trough_click = _gtk_range_default_htrough_click; range_class->motion = _gtk_range_default_hmotion; - - 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 scrollbar."), - GTK_TYPE_ADJUSTMENT, - G_PARAM_READWRITE)); - } static void @@ -132,10 +122,6 @@ gtk_hscrollbar_set_property (GObject *object, switch (prop_id) { - case PROP_ADJUSTMENT: - gtk_range_set_adjustment (GTK_RANGE (hscrollbar), - g_value_get_object (value)); - break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; @@ -154,9 +140,6 @@ gtk_hscrollbar_get_property (GObject *object, switch (prop_id) { - case PROP_ADJUSTMENT: - g_value_set_object (value, G_OBJECT (hscrollbar)); - break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; |