New Exciting PHP-GTK2 Funcitonalities

If you have just upgraded from the alpha to the beta-release of PHP-GTK2, and you're wondering what's exciting in the beta release, you have come ot the right page!.

This page assumes that you have the beta-release of PHP-GTK2 up and running. If you have not, the installation instruction is here for linux and here for windows.

There are quite a number of new widgets and new methods introduced in the beta release. As you would have guessed, there are hardly any documentation available on the net for these new widgets/methods.

I'm trying out all the new features one by one, and will come out with notes, sample codes, and explanations as I go along.

If you're interested in how to use these new widgets and methods too, do bookmark this page and come back to discover the many new and exciting PHP-GTK2 functionalities!

New Widgets available in GTK+ v2.10

Below are the five main new widgets with sample codes for each one of them:

  1. GtkStatusIcon - a cross-platform "tray icon" API.
  2. Examples:

  3. GtkAssistant - a widget for creating multi-step wizards.
  4. Examples:
  5. GtkLinkButton - a widget that displays a clickable hyperlink.
  6. Examples:
  7. GtkCellRendererAccel - a cell renderer for key combinations.
  8. Examples:
  9. GtkCellRendererSpin - a cell renderer for numeric values.
  10. Examples:

New Methods available in GTK+ v2.10

  1. GtkTreeView::set_enable_tree_lines() - draw interconnecting lines for a tree structure.
    Example: How to display a tree structure with connecting lines?

  2. GtkTreeView::get_dest_row_at_pos(x, y) - returns an array containing 2 elements. The first element is the path of the row. The second element is the drop position relative to the row of the position specified by x and y.
    Example: How to drag and drop between 2 GtkTreeViews - Part 3 - left to right with insert?
  3. GtkTreeView::set_grid_lines() - draw horizontal and/or vertical grid lines in a treeview. Example:

Other new stuff in GTK+ v2.10

  1. Support of svg (Scalable Vector Graphics) files.
    Example: How to display svg image file?

Search This Site

Google
Web This Site

Search PHP-GTK2 Manual

Full-text search on php-gtk2 manual

Members Login

Username:
Password:
Key:
What is this?
  Forget Password?