]> Pileus Git - ~andy/gtk/commitdiff
Initialize the scrollbar spacing variable in the class to -1, and then
authorOwen Taylor <otaylor@redhat.com>
Fri, 1 Mar 2002 21:53:22 +0000 (21:53 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Fri, 1 Mar 2002 21:53:22 +0000 (21:53 +0000)
Fri Mar  1 16:48:19 2002  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkscrolledwindow.c: Initialize the scrollbar spacing
variable in the class to -1, and then take that to mean
"default" (3) rather than putting 3 in the class directly.
This gives us some wiggle room to make it a per-instance
rather than a per-class property later.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkscrolledwindow.c

index b7d7d8814ea9c929f288ab72cf164905bc4d6013..cc5147045ef3e646cdf789c9f86f908e6701b1dc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Fri Mar  1 16:48:19 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkscrolledwindow.c: Initialize the scrollbar spacing
+       variable in the class to -1, and then take that to mean
+       "default" (3) rather than putting 3 in the class directly.
+       This gives us some wiggle room to make it a per-instance
+       rather than a per-class property later.
+
 2002-03-01  jacob berkman  <jacob@ximian.com>
 
        * Makefile.am (install-data-hook): 
index b7d7d8814ea9c929f288ab72cf164905bc4d6013..cc5147045ef3e646cdf789c9f86f908e6701b1dc 100644 (file)
@@ -1,3 +1,11 @@
+Fri Mar  1 16:48:19 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkscrolledwindow.c: Initialize the scrollbar spacing
+       variable in the class to -1, and then take that to mean
+       "default" (3) rather than putting 3 in the class directly.
+       This gives us some wiggle room to make it a per-instance
+       rather than a per-class property later.
+
 2002-03-01  jacob berkman  <jacob@ximian.com>
 
        * Makefile.am (install-data-hook): 
index b7d7d8814ea9c929f288ab72cf164905bc4d6013..cc5147045ef3e646cdf789c9f86f908e6701b1dc 100644 (file)
@@ -1,3 +1,11 @@
+Fri Mar  1 16:48:19 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkscrolledwindow.c: Initialize the scrollbar spacing
+       variable in the class to -1, and then take that to mean
+       "default" (3) rather than putting 3 in the class directly.
+       This gives us some wiggle room to make it a per-instance
+       rather than a per-class property later.
+
 2002-03-01  jacob berkman  <jacob@ximian.com>
 
        * Makefile.am (install-data-hook): 
index b7d7d8814ea9c929f288ab72cf164905bc4d6013..cc5147045ef3e646cdf789c9f86f908e6701b1dc 100644 (file)
@@ -1,3 +1,11 @@
+Fri Mar  1 16:48:19 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkscrolledwindow.c: Initialize the scrollbar spacing
+       variable in the class to -1, and then take that to mean
+       "default" (3) rather than putting 3 in the class directly.
+       This gives us some wiggle room to make it a per-instance
+       rather than a per-class property later.
+
 2002-03-01  jacob berkman  <jacob@ximian.com>
 
        * Makefile.am (install-data-hook): 
index b7d7d8814ea9c929f288ab72cf164905bc4d6013..cc5147045ef3e646cdf789c9f86f908e6701b1dc 100644 (file)
@@ -1,3 +1,11 @@
+Fri Mar  1 16:48:19 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkscrolledwindow.c: Initialize the scrollbar spacing
+       variable in the class to -1, and then take that to mean
+       "default" (3) rather than putting 3 in the class directly.
+       This gives us some wiggle room to make it a per-instance
+       rather than a per-class property later.
+
 2002-03-01  jacob berkman  <jacob@ximian.com>
 
        * Makefile.am (install-data-hook): 
index b7d7d8814ea9c929f288ab72cf164905bc4d6013..cc5147045ef3e646cdf789c9f86f908e6701b1dc 100644 (file)
@@ -1,3 +1,11 @@
+Fri Mar  1 16:48:19 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkscrolledwindow.c: Initialize the scrollbar spacing
+       variable in the class to -1, and then take that to mean
+       "default" (3) rather than putting 3 in the class directly.
+       This gives us some wiggle room to make it a per-instance
+       rather than a per-class property later.
+
 2002-03-01  jacob berkman  <jacob@ximian.com>
 
        * Makefile.am (install-data-hook): 
index b7d7d8814ea9c929f288ab72cf164905bc4d6013..cc5147045ef3e646cdf789c9f86f908e6701b1dc 100644 (file)
@@ -1,3 +1,11 @@
+Fri Mar  1 16:48:19 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkscrolledwindow.c: Initialize the scrollbar spacing
+       variable in the class to -1, and then take that to mean
+       "default" (3) rather than putting 3 in the class directly.
+       This gives us some wiggle room to make it a per-instance
+       rather than a per-class property later.
+
 2002-03-01  jacob berkman  <jacob@ximian.com>
 
        * Makefile.am (install-data-hook): 
index 2e48e668f6c5b00a2e6322163ef63eaed5ed6d57..299ef5be6606b533d18e897fae80e1b64228232b 100644 (file)
  *    under A) at least correspond to the space taken up by its scrollbars.
  */
 
-#define SCROLLBAR_SPACING(w) (GTK_SCROLLED_WINDOW_GET_CLASS (w)->scrollbar_spacing)
+#define DEFAULT_SCROLLBAR_SPACING  3
 
-#define DEFAULT_SCROLLBAR_SPACING  0
+#define SCROLLBAR_SPACING(w)                                                           \
+  (GTK_SCROLLED_WINDOW_GET_CLASS (w)->scrollbar_spacing >= 0 ?                         \
+   GTK_SCROLLED_WINDOW_GET_CLASS (w)->scrollbar_spacing : DEFAULT_SCROLLBAR_SPACING)
 
 enum {
   PROP_0,
@@ -223,7 +225,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
   container_class->remove = gtk_scrolled_window_remove;
   container_class->forall = gtk_scrolled_window_forall;
 
-  class->scrollbar_spacing = DEFAULT_SCROLLBAR_SPACING;
+  class->scrollbar_spacing = -1;
 
   class->scroll_child = gtk_scrolled_window_scroll_child;
   class->move_focus_out = gtk_scrolled_window_move_focus_out;