Line 100: | Line 100: | ||
|GTK_WIDGET_REALIZED | |GTK_WIDGET_REALIZED | ||
|gtk_widget_get_realized() | |gtk_widget_get_realized() | ||
|- | |||
|gdk_drawable_*() | |||
|? | |||
|- | |- | ||
|} | |} |
Revision as of 13:20, 13 January 2011
Helper page for Firefox transition to Gtk3
Doc
http://library.gnome.org/devel/gtk/unstable/
http://library.gnome.org/devel/gdk/unstable/
http://library.gnome.org/devel/gtk/unstable/migrating.html
http://library.gnome.org/devel/gtk/unstable/ch25s02.html#id1238063
http://www.mail-archive.com/gtkmm-list@gnome.org/msg15382.html
http://answerpot.com/showthread.php?1780119-Add+compat+macro+for+GDK_DISPLAY
http://library.gnome.org/devel/gtk/unstable/migrating.html
http://library.gnome.org/devel/gtk/unstable/api-index-3-0.html
GtkStyleContext instead of GtkStyle http://mail.gnome.org/archives/commits-list/2010-December/msg00456.html
Evolution patches http://osdir.com/ml/commits.gnome/2010-12/msg06109.html
OpenOffice Gtk3 patch
Replacements
orig | replacement |
GDK_DISPLAY() | GDK_DISPLAY_XDISPLAY(gdk_display_get_default()) |
scrollbar->style | gtk_widget_get_style(scrollbar) |
adj->page_size = rect->width | gtk_adjustment_set_page_size(adj, rect->width) |
gHandleBoxWidget->shadow_type | gtk_handle_box_get_shadow_type(GTK_HANDLE_BOX(gHandleBoxWidget)) |
GTK_WIDGET_SET_FLAGS(gComboBoxEntryTextareaWidget, GTK_HAS_FOCUS); | TEST: gtk_widget_grab_focus(gComboBoxEntryTextareaWidget); |
GTK_WIDGET_UNSET_FLAGS(gComboBoxEntryTextareaWidget, GTK_HAS_FOCUS); | ? |
gtk_check_menu_item_GTK_CHECK_MENU_ITEM(gCheckMenuItemWidget)->always_show_toggle) | ? |
gButtonWidget->border_width | gtk_container_get_border_width(GTK_CONTAINER(gButtonWidget)) |
GtkObject | GtkWidget |
GtkObjectClass | GtkWidgetClass |
GTK_OBJECT_CLASS | GTK_WIDGET_CLASS |
widget->allocation | gtk_widget_get_allocation(widget), gtk_widget_get_allocated_width(), gtk_widget_get_allocated_height() |
widget->style = gtk_style_attach (widget->style, widget->window) | gtk_widget_style_attach(widget); |
GTK_WIDGET_SET_FLAGS(container, GTK_CAN_FOCUS); | TEST: gtk_widget_set_can_focus(container, TRUE); |
container->container.resize_mode = GTK_RESIZE_IMMEDIATE; | gtk_container_set_resize_mode(&(container->container), GTK_RESIZE_IMMEDIATE); |
gdk_rgb_get_visual() | gdk_visual_get_system_visual (gdk_screen_get_default()) |
gdk_rgb_get_colormap() | gdk_screen_get_system_colormap (gdk_screen_get_default()) |
(GdkVisual *)visual->depth | gdk_visual_get_depth(visual) |
(GtkWidget *)widget->window | gtk_widget_get_window(window) |
GdkPixmap and GdkBitmap | cairo surface |
gdk_window_set_back_pixmap | ? |
GDK_COLORMAP_XCOLORMAP | ? |
GTK_WIDGET_REALIZED | gtk_widget_get_realized() |
gdk_drawable_*() | ? |