summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@nuclecu.unam.mx>1998-06-23 15:55:51 +0000
committerArturo Espinosa <unammx@src.gnome.org>1998-06-23 15:55:51 +0000
commit4c7408d9ea1c706b085d76be1da266f231573756 (patch)
tree1d0809018a8364132a8cacf565944fb08c3ec959
parenteab38fa264070008309a1be0185b1c8e3eb54231 (diff)
downloadgtk+-4c7408d9ea1c706b085d76be1da266f231573756.tar.gz
Export the gtk_entry_adjust_scroll. Required if you change the cursor
1998-06-22 Miguel de Icaza <miguel@nuclecu.unam.mx> * gtk/gtkentry.h, gtk/gtkentry.c: Export the gtk_entry_adjust_scroll. Required if you change the cursor position and want to sync it up with your code (Midnight Commander gtk front end needs this). * gtk/gtktable.c: Deal with tables that have size 0, 0.
-rw-r--r--ChangeLog10
-rw-r--r--ChangeLog.pre-2-010
-rw-r--r--ChangeLog.pre-2-1010
-rw-r--r--ChangeLog.pre-2-210
-rw-r--r--ChangeLog.pre-2-410
-rw-r--r--ChangeLog.pre-2-610
-rw-r--r--ChangeLog.pre-2-810
-rw-r--r--gtk/gtkentry.c2
-rw-r--r--gtk/gtkentry.h1
-rw-r--r--gtk/gtktable.c6
10 files changed, 76 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 751d04b609..dce75575fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+1998-06-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
+
+ * gtk/gtkentry.h, gtk/gtkentry.c: Export the
+ gtk_entry_adjust_scroll. Required if you change the cursor
+ position and want to sync it up with your code (Midnight Commander
+ gtk front end needs this).
+
+ * gtk/gtktable.c: Deal with tables that have size 0, 0.
+
Tue Jun 23 12:12:19 BST 1998 Tony Gale <gale@gtk.org>
* examples/README.1ST: new file to explain how the
@@ -222,6 +231,7 @@ Wed Jun 17 03:47:40 1998 Tim Janik <timj@gtk.org>
* more GtkType and macro fixups.
+>>>>>>> 1.476
1998-06-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (draw_textured_frame): Now accepts an extra
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index 751d04b609..dce75575fd 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -1,3 +1,12 @@
+1998-06-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
+
+ * gtk/gtkentry.h, gtk/gtkentry.c: Export the
+ gtk_entry_adjust_scroll. Required if you change the cursor
+ position and want to sync it up with your code (Midnight Commander
+ gtk front end needs this).
+
+ * gtk/gtktable.c: Deal with tables that have size 0, 0.
+
Tue Jun 23 12:12:19 BST 1998 Tony Gale <gale@gtk.org>
* examples/README.1ST: new file to explain how the
@@ -222,6 +231,7 @@ Wed Jun 17 03:47:40 1998 Tim Janik <timj@gtk.org>
* more GtkType and macro fixups.
+>>>>>>> 1.476
1998-06-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (draw_textured_frame): Now accepts an extra
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 751d04b609..dce75575fd 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,12 @@
+1998-06-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
+
+ * gtk/gtkentry.h, gtk/gtkentry.c: Export the
+ gtk_entry_adjust_scroll. Required if you change the cursor
+ position and want to sync it up with your code (Midnight Commander
+ gtk front end needs this).
+
+ * gtk/gtktable.c: Deal with tables that have size 0, 0.
+
Tue Jun 23 12:12:19 BST 1998 Tony Gale <gale@gtk.org>
* examples/README.1ST: new file to explain how the
@@ -222,6 +231,7 @@ Wed Jun 17 03:47:40 1998 Tim Janik <timj@gtk.org>
* more GtkType and macro fixups.
+>>>>>>> 1.476
1998-06-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (draw_textured_frame): Now accepts an extra
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 751d04b609..dce75575fd 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -1,3 +1,12 @@
+1998-06-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
+
+ * gtk/gtkentry.h, gtk/gtkentry.c: Export the
+ gtk_entry_adjust_scroll. Required if you change the cursor
+ position and want to sync it up with your code (Midnight Commander
+ gtk front end needs this).
+
+ * gtk/gtktable.c: Deal with tables that have size 0, 0.
+
Tue Jun 23 12:12:19 BST 1998 Tony Gale <gale@gtk.org>
* examples/README.1ST: new file to explain how the
@@ -222,6 +231,7 @@ Wed Jun 17 03:47:40 1998 Tim Janik <timj@gtk.org>
* more GtkType and macro fixups.
+>>>>>>> 1.476
1998-06-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (draw_textured_frame): Now accepts an extra
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 751d04b609..dce75575fd 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -1,3 +1,12 @@
+1998-06-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
+
+ * gtk/gtkentry.h, gtk/gtkentry.c: Export the
+ gtk_entry_adjust_scroll. Required if you change the cursor
+ position and want to sync it up with your code (Midnight Commander
+ gtk front end needs this).
+
+ * gtk/gtktable.c: Deal with tables that have size 0, 0.
+
Tue Jun 23 12:12:19 BST 1998 Tony Gale <gale@gtk.org>
* examples/README.1ST: new file to explain how the
@@ -222,6 +231,7 @@ Wed Jun 17 03:47:40 1998 Tim Janik <timj@gtk.org>
* more GtkType and macro fixups.
+>>>>>>> 1.476
1998-06-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (draw_textured_frame): Now accepts an extra
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 751d04b609..dce75575fd 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,3 +1,12 @@
+1998-06-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
+
+ * gtk/gtkentry.h, gtk/gtkentry.c: Export the
+ gtk_entry_adjust_scroll. Required if you change the cursor
+ position and want to sync it up with your code (Midnight Commander
+ gtk front end needs this).
+
+ * gtk/gtktable.c: Deal with tables that have size 0, 0.
+
Tue Jun 23 12:12:19 BST 1998 Tony Gale <gale@gtk.org>
* examples/README.1ST: new file to explain how the
@@ -222,6 +231,7 @@ Wed Jun 17 03:47:40 1998 Tim Janik <timj@gtk.org>
* more GtkType and macro fixups.
+>>>>>>> 1.476
1998-06-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (draw_textured_frame): Now accepts an extra
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 751d04b609..dce75575fd 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,12 @@
+1998-06-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
+
+ * gtk/gtkentry.h, gtk/gtkentry.c: Export the
+ gtk_entry_adjust_scroll. Required if you change the cursor
+ position and want to sync it up with your code (Midnight Commander
+ gtk front end needs this).
+
+ * gtk/gtktable.c: Deal with tables that have size 0, 0.
+
Tue Jun 23 12:12:19 BST 1998 Tony Gale <gale@gtk.org>
* examples/README.1ST: new file to explain how the
@@ -222,6 +231,7 @@ Wed Jun 17 03:47:40 1998 Tim Janik <timj@gtk.org>
* more GtkType and macro fixups.
+>>>>>>> 1.476
1998-06-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (draw_textured_frame): Now accepts an extra
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index db4a957cb0..97399a1e5d 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -72,7 +72,7 @@ static void gtk_entry_queue_draw (GtkEntry *entry);
static gint gtk_entry_timer (gpointer data);
static gint gtk_entry_position (GtkEntry *entry,
gint x);
-static void gtk_entry_adjust_scroll (GtkEntry *entry);
+void gtk_entry_adjust_scroll (GtkEntry *entry);
static void gtk_entry_grow_text (GtkEntry *entry);
static void gtk_entry_insert_text (GtkEditable *editable,
const gchar *new_text,
diff --git a/gtk/gtkentry.h b/gtk/gtkentry.h
index 50b36bd2a0..7264c3cb0e 100644
--- a/gtk/gtkentry.h
+++ b/gtk/gtkentry.h
@@ -90,6 +90,7 @@ void gtk_entry_set_visibility (GtkEntry *entry,
gboolean visible);
void gtk_entry_set_editable (GtkEntry *entry,
gboolean editable);
+void gtk_entry_adjust_scroll (GtkEntry *entry);
/* text is truncated if needed */
void gtk_entry_set_max_length (GtkEntry *entry,
guint16 max);
diff --git a/gtk/gtktable.c b/gtk/gtktable.c
index a62dc59385..fc80d3816c 100644
--- a/gtk/gtktable.c
+++ b/gtk/gtktable.c
@@ -378,8 +378,10 @@ gtk_table_new (guint rows,
{
GtkTable *table;
- g_return_val_if_fail (rows >= 1, NULL);
- g_return_val_if_fail (columns >= 1, NULL);
+ if (rows == 0)
+ rows = 1;
+ if (columns == 0)
+ columns = 1;
table = gtk_type_new (gtk_table_get_type ());