+Thu Mar 19 00:37:44 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkscrolledwindow.c (gtk_scrolled_window_construct): perform the
+ neccessary checks on funtion begin. use the scrolled_window that got
+ passed to this function, and not a new one.
+
Wed Mar 18 11:09:10 1998 Owen Taylor <owt1@cornell.edu>
( From: James Henstridge <james@daa.com.au> )
+Thu Mar 19 00:37:44 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkscrolledwindow.c (gtk_scrolled_window_construct): perform the
+ neccessary checks on funtion begin. use the scrolled_window that got
+ passed to this function, and not a new one.
+
Wed Mar 18 11:09:10 1998 Owen Taylor <owt1@cornell.edu>
( From: James Henstridge <james@daa.com.au> )
+Thu Mar 19 00:37:44 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkscrolledwindow.c (gtk_scrolled_window_construct): perform the
+ neccessary checks on funtion begin. use the scrolled_window that got
+ passed to this function, and not a new one.
+
Wed Mar 18 11:09:10 1998 Owen Taylor <owt1@cornell.edu>
( From: James Henstridge <james@daa.com.au> )
+Thu Mar 19 00:37:44 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkscrolledwindow.c (gtk_scrolled_window_construct): perform the
+ neccessary checks on funtion begin. use the scrolled_window that got
+ passed to this function, and not a new one.
+
Wed Mar 18 11:09:10 1998 Owen Taylor <owt1@cornell.edu>
( From: James Henstridge <james@daa.com.au> )
+Thu Mar 19 00:37:44 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkscrolledwindow.c (gtk_scrolled_window_construct): perform the
+ neccessary checks on funtion begin. use the scrolled_window that got
+ passed to this function, and not a new one.
+
Wed Mar 18 11:09:10 1998 Owen Taylor <owt1@cornell.edu>
( From: James Henstridge <james@daa.com.au> )
+Thu Mar 19 00:37:44 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkscrolledwindow.c (gtk_scrolled_window_construct): perform the
+ neccessary checks on funtion begin. use the scrolled_window that got
+ passed to this function, and not a new one.
+
Wed Mar 18 11:09:10 1998 Owen Taylor <owt1@cornell.edu>
( From: James Henstridge <james@daa.com.au> )
+Thu Mar 19 00:37:44 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkscrolledwindow.c (gtk_scrolled_window_construct): perform the
+ neccessary checks on funtion begin. use the scrolled_window that got
+ passed to this function, and not a new one.
+
Wed Mar 18 11:09:10 1998 Owen Taylor <owt1@cornell.edu>
( From: James Henstridge <james@daa.com.au> )
gtk_scrolled_window_new (GtkAdjustment *hadjustment,
GtkAdjustment *vadjustment)
{
- GtkScrolledWindow *scrolled_window;
+ GtkWidget *scrolled_window;
scrolled_window = gtk_type_new (gtk_scrolled_window_get_type ());
- gtk_scrolled_window_construct (scrolled_window, hadjustment, vadjustment);
+ gtk_scrolled_window_construct (GTK_SCROLLED_WINDOW (scrolled_window), hadjustment, vadjustment);
- return GTK_WIDGET (scrolled_window);
+ return scrolled_window;
}
void
GtkAdjustment *hadjustment,
GtkAdjustment *vadjustment)
{
- scrolled_window = gtk_type_new (gtk_scrolled_window_get_type ());
+ g_return_if_fail (scrolled_window != NULL);
+ g_return_if_fail (GTK_IS_SCROLLED_WINDOW (scrolled_window));
+ g_return_if_fail (scrolled_window->viewport == NULL);
scrolled_window->viewport = gtk_viewport_new (hadjustment, vadjustment);
hadjustment = gtk_viewport_get_hadjustment (GTK_VIEWPORT (scrolled_window->viewport));