summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1998-10-10 01:55:09 +0000
committerTim Janik <timj@src.gnome.org>1998-10-10 01:55:09 +0000
commit357c50b14ed672559582e44b9ea1547497ca2e3b (patch)
tree35372550087e0da154c91d81f8d35288742b89a4
parent922d7fd0ae22fb62d8aaae2b7210362a1e1bae31 (diff)
downloadgdk-pixbuf-357c50b14ed672559582e44b9ea1547497ca2e3b.tar.gz
take the left, right, top and bottom attach arguments as mandatory and
Sat Oct 10 03:37:50 1998 Tim Janik <timj@gtk.org> * gtk/gtktable.c (gtk_table_set_child_arg): take the left, right, top and bottom attach arguments as mandatory and readjust the table size and opposing edge accordingly if required. this way the order in which the arguments are set doesn't matter.
-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--TODO20
-rw-r--r--gtk/gtktable.c38
9 files changed, 87 insertions, 20 deletions
diff --git a/ChangeLog b/ChangeLog
index faff0e909..a6336ee93 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Sat Oct 10 03:37:50 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtktable.c (gtk_table_set_child_arg): take the left, right, top
+ and bottom attach arguments as mandatory and readjust the table size
+ and opposing edge accordingly if required. this way the order in which
+ the arguments are set doesn't matter.
+
Thu Oct 8 15:53:59 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktypeutils.c (gtk_type_class_init): Fixed warning
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index faff0e909..a6336ee93 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -1,3 +1,10 @@
+Sat Oct 10 03:37:50 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtktable.c (gtk_table_set_child_arg): take the left, right, top
+ and bottom attach arguments as mandatory and readjust the table size
+ and opposing edge accordingly if required. this way the order in which
+ the arguments are set doesn't matter.
+
Thu Oct 8 15:53:59 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktypeutils.c (gtk_type_class_init): Fixed warning
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index faff0e909..a6336ee93 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,10 @@
+Sat Oct 10 03:37:50 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtktable.c (gtk_table_set_child_arg): take the left, right, top
+ and bottom attach arguments as mandatory and readjust the table size
+ and opposing edge accordingly if required. this way the order in which
+ the arguments are set doesn't matter.
+
Thu Oct 8 15:53:59 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktypeutils.c (gtk_type_class_init): Fixed warning
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index faff0e909..a6336ee93 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -1,3 +1,10 @@
+Sat Oct 10 03:37:50 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtktable.c (gtk_table_set_child_arg): take the left, right, top
+ and bottom attach arguments as mandatory and readjust the table size
+ and opposing edge accordingly if required. this way the order in which
+ the arguments are set doesn't matter.
+
Thu Oct 8 15:53:59 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktypeutils.c (gtk_type_class_init): Fixed warning
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index faff0e909..a6336ee93 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -1,3 +1,10 @@
+Sat Oct 10 03:37:50 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtktable.c (gtk_table_set_child_arg): take the left, right, top
+ and bottom attach arguments as mandatory and readjust the table size
+ and opposing edge accordingly if required. this way the order in which
+ the arguments are set doesn't matter.
+
Thu Oct 8 15:53:59 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktypeutils.c (gtk_type_class_init): Fixed warning
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index faff0e909..a6336ee93 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,3 +1,10 @@
+Sat Oct 10 03:37:50 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtktable.c (gtk_table_set_child_arg): take the left, right, top
+ and bottom attach arguments as mandatory and readjust the table size
+ and opposing edge accordingly if required. this way the order in which
+ the arguments are set doesn't matter.
+
Thu Oct 8 15:53:59 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktypeutils.c (gtk_type_class_init): Fixed warning
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index faff0e909..a6336ee93 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,10 @@
+Sat Oct 10 03:37:50 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtktable.c (gtk_table_set_child_arg): take the left, right, top
+ and bottom attach arguments as mandatory and readjust the table size
+ and opposing edge accordingly if required. this way the order in which
+ the arguments are set doesn't matter.
+
Thu Oct 8 15:53:59 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktypeutils.c (gtk_type_class_init): Fixed warning
diff --git a/TODO b/TODO
index 53589a842..563a52c89 100644
--- a/TODO
+++ b/TODO
@@ -6,7 +6,19 @@ Bugs:
* Widget redrawing when the window resizes sometimes messes up.
GtkLabels sometimes redraw without clearing up the underlying background on
window resizes.
+
+ * Change bitfields to guints from enums, or vice versa?
+
+ * MappingNotify events produce warnings.
+
+ * gtk_widget_set_uposition can't handle negative x,y coordinates!
+
+ * the type system (gtktypeutils.c) has to handle creations of fundamental
+ types seperatedly from derived types, so we don't screw foreign
+ fundamental types with an already extensively increased seqno.
+ * Expose events aren't being generated correctly for DND demo
+
* delay dnd settings to take effect once a widget is realized, this is
to avoid force realizations. i think this goes along with owens dnd
changes?
@@ -35,14 +47,6 @@ Bugs:
segfault in malloc
-timj
- * Change bitfields to guints from enums, or vice versa?
-
- * Expose events aren't being generated correctly for DND demo
-
- * MappingNotify events produce warnings.
-
- * gtk_widget_set_uposition can't handle negative x,y coordinates!
-
Additions:
* implement keyboard navigation in menus
diff --git a/gtk/gtktable.c b/gtk/gtktable.c
index 08e048f26..ad09b98bc 100644
--- a/gtk/gtktable.c
+++ b/gtk/gtktable.c
@@ -258,25 +258,39 @@ gtk_table_set_child_arg (GtkContainer *container,
switch (arg_id)
{
case CHILD_ARG_LEFT_ATTACH:
- if (GTK_VALUE_UINT (*arg) < table_child->right_attach)
- table_child->left_attach = GTK_VALUE_UINT (*arg);
- break;
- case CHILD_ARG_RIGHT_ATTACH:
- if (GTK_VALUE_UINT (*arg) > table_child->left_attach)
- table_child->right_attach = GTK_VALUE_UINT (*arg);
+ table_child->left_attach = GTK_VALUE_UINT (*arg);
+ if (table_child->right_attach <= table_child->left_attach)
+ table_child->right_attach = table_child->left_attach + 1;
if (table_child->right_attach >= table->ncols)
gtk_table_resize (table, table->ncols, table_child->right_attach);
break;
- case CHILD_ARG_TOP_ATTACH:
- if (GTK_VALUE_UINT (*arg) < table_child->bottom_attach)
- table_child->top_attach = GTK_VALUE_UINT (*arg);
+ case CHILD_ARG_RIGHT_ATTACH:
+ if (GTK_VALUE_UINT (*arg) > 0)
+ {
+ table_child->right_attach = GTK_VALUE_UINT (*arg);
+ if (table_child->right_attach <= table_child->left_attach)
+ table_child->left_attach = table_child->right_attach - 1;
+ if (table_child->right_attach >= table->ncols)
+ gtk_table_resize (table, table->ncols, table_child->right_attach);
+ }
break;
- case CHILD_ARG_BOTTOM_ATTACH:
- if (GTK_VALUE_UINT (*arg) > table_child->top_attach)
- table_child->bottom_attach = GTK_VALUE_UINT (*arg);
+ case CHILD_ARG_TOP_ATTACH:
+ table_child->top_attach = GTK_VALUE_UINT (*arg);
+ if (table_child->bottom_attach <= table_child->top_attach)
+ table_child->bottom_attach = table_child->top_attach + 1;
if (table_child->bottom_attach >= table->nrows)
gtk_table_resize (table, table_child->bottom_attach, table->ncols);
break;
+ case CHILD_ARG_BOTTOM_ATTACH:
+ if (GTK_VALUE_UINT (*arg) > 0)
+ {
+ table_child->bottom_attach = GTK_VALUE_UINT (*arg);
+ if (table_child->bottom_attach <= table_child->top_attach)
+ table_child->top_attach = table_child->bottom_attach - 1;
+ if (table_child->bottom_attach >= table->nrows)
+ gtk_table_resize (table, table_child->bottom_attach, table->ncols);
+ }
+ break;
case CHILD_ARG_X_OPTIONS:
table_child->xexpand = (GTK_VALUE_FLAGS (*arg) & GTK_EXPAND) != 0;
table_child->xshrink = (GTK_VALUE_FLAGS (*arg) & GTK_SHRINK) != 0;