summaryrefslogtreecommitdiff
path: root/gtk/gtkvscrollbar.c
diff options
context:
space:
mode:
authorAlexander Larsson <alla@lysator.liu.se>2001-05-17 16:22:06 +0000
committerAlexander Larsson <alexl@src.gnome.org>2001-05-17 16:22:06 +0000
commit6ee1ae13adafbb6a0ac5a75a948f0a9bc8f0e751 (patch)
treebd9689851eabea933a0ef00c0ad9c97c376b62cd /gtk/gtkvscrollbar.c
parentbe277ae41303b9d5ba92a911360e66f197c82eba (diff)
downloadgdk-pixbuf-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/gtkvscrollbar.c')
-rw-r--r--gtk/gtkvscrollbar.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/gtk/gtkvscrollbar.c b/gtk/gtkvscrollbar.c
index f4e7c28f7..54fb33732 100644
--- a/gtk/gtkvscrollbar.c
+++ b/gtk/gtkvscrollbar.c
@@ -36,7 +36,6 @@
enum {
PROP_0,
- PROP_ADJUSTMENT
};
static void gtk_vscrollbar_class_init (GtkVScrollbarClass *klass);
@@ -107,15 +106,6 @@ gtk_vscrollbar_class_init (GtkVScrollbarClass *class)
range_class->slider_update = gtk_vscrollbar_slider_update;
range_class->trough_click = _gtk_range_default_vtrough_click;
range_class->motion = _gtk_range_default_vmotion;
-
- 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
@@ -130,9 +120,6 @@ gtk_vscrollbar_set_property (GObject *object,
switch (prop_id)
{
- case PROP_ADJUSTMENT:
- gtk_range_set_adjustment (GTK_RANGE (vscrollbar), g_value_get_object (value));
- break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -151,9 +138,6 @@ gtk_vscrollbar_get_property (GObject *object,
switch (prop_id)
{
- case PROP_ADJUSTMENT:
- g_value_set_object (value, G_OBJECT (vscrollbar));
- break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;