]> Pileus Git - ~andy/gtk/blobdiff - docs/Changes-2.0.txt
Adapt to uscore-ification of gtktextiterprivate
[~andy/gtk] / docs / Changes-2.0.txt
index 0cdca5a4eead3e8c3907144b81bd088939684622..fa10e234046af8bb42338a8a8b06dca2654fc292 100644 (file)
@@ -1,4 +1,10 @@
-Incompatible Changes from GTK+-1.2 to GTK+-1.4:
+Incompatible Changes from GTK+-1.2 to GTK+-2.0:
+
+* gtk_container_get_toplevels() was removed and replaced with
+  gtk_window_list_toplevels(), which has different memory management 
+  on the return value (gtk_window_list_toplevels() copies the GList
+  and also references each widget in the list, so you have to
+  g_list_free() the list after first unref'ing each list member).
 
 * The gdk_time* functions have been removed. This functionality
   has been unused since the main loop was moved into GLib
@@ -162,6 +168,10 @@ Incompatible Changes from GTK+-1.2 to GTK+-1.4:
   your code with s/style->klass->xthickness/style->xthickness/g and 
   same for ythickness.
 
+- Some GtkStyle draw_ methods have been removed (cross, oval, ramp) 
+  and others have been added (expander, layout). This will require
+  changes to theme engines.
+
 - If you were using private GDK types, they have been rearranged
   significantly. You shouldn't use private types. ;-) 
 
@@ -249,4 +259,31 @@ Incompatible Changes from GTK+-1.2 to GTK+-1.4:
   void       gtk_progress_bar_set_orientation      (GtkProgressBar *pbar,
                                                    GtkProgressBarOrientation orientation);
 
+* The GtkNotebookPage structure has been removed from the public header files;
+  this was never meant to be a public structure, and all functionality that
+  could be done by accessing the struct fields of this structure should be 
+  accesible otherwise.
+
+- GtkMenuPositionFunc has a new parameter push_in which controls how
+  menus placed outside the screen is handled. If this is set to true and
+  part of the menu is outside the screen then Gtk+ pushes it into the visible
+  area. Otherwise the menu is cut of at the end of the visible screen area.
 
+  Regardles of what happens to the size of the menu, the result is always
+  that the items are placed in the same place as if the menu was placed
+  outside the screen, using menu scrolling if necessary.
+  
+- The "draw" signal and virtual method on GtkWidget has been removed.
+  All drawing should now occur by invalidating a region of the widget
+  (call gdk_window_invalidate_rect() or gtk_widget_queue_draw() for
+  example to invalidate a region). GTK+ merges all invalid regions,
+  and sends expose events to the widget in an idle handler for the
+  invalid regions. gtk_widget_draw() is deprecated but still works; it
+  adds the passed-in area to the invalid region and immediately sends
+  expose events for the current invalid region. 
+  Most widgets will work fine if you just delete their "draw"
+  implementation, since they will already have working expose_event
+  implementations. The draw method was rarely called in practice
+  anyway.