Differences between Gamma and C for GTK

Gamma/GTK: Using Gamma™ with GTK, Version 0.9
Prev |  | Next

# Chapter 2. Differences between Gamma and C for GTK

There are a few differences between the C interface to GTK and the Gamma interface, due to Gamma's underlying functionality.

# 2.1. Lists

To facilitate the handling of data in GLists and GSLists within Gamma, they are not used as such, but rather as normal Gamma lists. Any widget's method or function (such as `gtk_radio_button_new`) that would take a GList or GSList as an argument, takes an ordinary Gamma list instead. For example:

        ...

        button_list = list(button1,button2);
        button3 = gtk_radio_button_new_with_label(button_list);
        ...

This feature lets you manipulate the list using Gamma's extensive list functions.

Prev | Home | Next
Introduction | Up | Accessing Widget Resources

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.