From Fedora Project Wiki

Line 51: Line 51:
| widget->allocation
| widget->allocation
| gtk_widget_get_allocation(widget), gtk_widget_get_allocated_width(), gtk_widget_get_allocated_height()
| 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);
|-
|-
|}
|}

Revision as of 14:47, 11 January 2011

Helper page for Firefox transition to Gtk3

Doc:

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

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 GObject
GtkObjectClass GObjectClass
GTK_OBJECT_CLASS G_OBJECT_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);