summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--ChangeLog.pre-2-07
-rw-r--r--ChangeLog.pre-2-107
-rw-r--r--ChangeLog.pre-2-27
-rw-r--r--ChangeLog.pre-2-47
-rw-r--r--ChangeLog.pre-2-67
-rw-r--r--ChangeLog.pre-2-87
-rw-r--r--gtk/gtklayout.c15
-rw-r--r--gtk/gtklayout.h2
9 files changed, 59 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 5467daf286..662bb9f203 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Wed Jan 27 23:05:55 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtklayout.[ch] (gtk_layout_realize): Move
+ gravity_works back to a static global variable,
+ since it is a global constant, and this way we
+ keep structure sizes uniform.
+
Wed Jan 27 22:59:07 1999 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am (static_SOURCES): Move gtkintl.h
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index 5467daf286..662bb9f203 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -1,3 +1,10 @@
+Wed Jan 27 23:05:55 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtklayout.[ch] (gtk_layout_realize): Move
+ gravity_works back to a static global variable,
+ since it is a global constant, and this way we
+ keep structure sizes uniform.
+
Wed Jan 27 22:59:07 1999 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am (static_SOURCES): Move gtkintl.h
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 5467daf286..662bb9f203 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,10 @@
+Wed Jan 27 23:05:55 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtklayout.[ch] (gtk_layout_realize): Move
+ gravity_works back to a static global variable,
+ since it is a global constant, and this way we
+ keep structure sizes uniform.
+
Wed Jan 27 22:59:07 1999 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am (static_SOURCES): Move gtkintl.h
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 5467daf286..662bb9f203 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -1,3 +1,10 @@
+Wed Jan 27 23:05:55 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtklayout.[ch] (gtk_layout_realize): Move
+ gravity_works back to a static global variable,
+ since it is a global constant, and this way we
+ keep structure sizes uniform.
+
Wed Jan 27 22:59:07 1999 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am (static_SOURCES): Move gtkintl.h
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 5467daf286..662bb9f203 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -1,3 +1,10 @@
+Wed Jan 27 23:05:55 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtklayout.[ch] (gtk_layout_realize): Move
+ gravity_works back to a static global variable,
+ since it is a global constant, and this way we
+ keep structure sizes uniform.
+
Wed Jan 27 22:59:07 1999 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am (static_SOURCES): Move gtkintl.h
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 5467daf286..662bb9f203 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,3 +1,10 @@
+Wed Jan 27 23:05:55 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtklayout.[ch] (gtk_layout_realize): Move
+ gravity_works back to a static global variable,
+ since it is a global constant, and this way we
+ keep structure sizes uniform.
+
Wed Jan 27 22:59:07 1999 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am (static_SOURCES): Move gtkintl.h
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 5467daf286..662bb9f203 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,10 @@
+Wed Jan 27 23:05:55 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtklayout.[ch] (gtk_layout_realize): Move
+ gravity_works back to a static global variable,
+ since it is a global constant, and this way we
+ keep structure sizes uniform.
+
Wed Jan 27 22:59:07 1999 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am (static_SOURCES): Move gtkintl.h
diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c
index 85cc99057a..353c3f1a8c 100644
--- a/gtk/gtklayout.c
+++ b/gtk/gtklayout.c
@@ -110,6 +110,7 @@ static void gtk_layout_remove_child_cb (GdkWindow *parent,
static GtkWidgetClass *parent_class = NULL;
+static gboolean gravity_works;
/* Public interface
*/
@@ -473,7 +474,11 @@ gtk_layout_realize (GtkWidget *widget)
gdk_window_add_filter (widget->window, gtk_layout_main_filter, layout);
gdk_window_add_filter (layout->bin_window, gtk_layout_filter, layout);
- layout->gravity_works = gdk_window_set_static_gravities (layout->bin_window, TRUE);
+ /* XXX: If we ever get multiple displays for GTK+, then gravity_works
+ * will have to become a widget member. Right now we just
+ * keep it as a global
+ */
+ gravity_works = gdk_window_set_static_gravities (layout->bin_window, TRUE);
tmp_list = layout->children;
while (tmp_list)
@@ -939,7 +944,7 @@ gtk_layout_adjustment_changed (GtkAdjustment *adjustment,
if (dx > 0)
{
- if (layout->gravity_works)
+ if (gravity_works)
{
gdk_window_resize (layout->bin_window,
widget->allocation.width + dx,
@@ -963,7 +968,7 @@ gtk_layout_adjustment_changed (GtkAdjustment *adjustment,
}
else if (dx < 0)
{
- if (layout->gravity_works)
+ if (gravity_works)
{
gdk_window_move_resize (layout->bin_window,
dx, 0,
@@ -988,7 +993,7 @@ gtk_layout_adjustment_changed (GtkAdjustment *adjustment,
if (dy > 0)
{
- if (layout->gravity_works)
+ if (gravity_works)
{
gdk_window_resize (layout->bin_window,
widget->allocation.width,
@@ -1012,7 +1017,7 @@ gtk_layout_adjustment_changed (GtkAdjustment *adjustment,
}
else if (dy < 0)
{
- if (layout->gravity_works)
+ if (gravity_works)
{
gdk_window_move_resize (layout->bin_window,
0, dy,
diff --git a/gtk/gtklayout.h b/gtk/gtklayout.h
index 862da8b69e..d42718e221 100644
--- a/gtk/gtklayout.h
+++ b/gtk/gtklayout.h
@@ -63,8 +63,6 @@ struct _GtkLayout {
gint scroll_y;
guint freeze_count;
-
- guint gravity_works : 1;
};
struct _GtkLayoutClass {