* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <gtk/gtk.h>
GtkTreeModel *model;
GtkTreePath *path;
GtkTreeIter iter;
- GdkColor color;
+ GdkRGBA color;
GtkCellArea *area;
gtk_init (&argc, &argv);
gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (tmp), renderer,
"text", 1,
NULL);
- color.red = 0xffff;
- color.blue = 0xffff;
+ color.red = 1.0;
+ color.blue = 1.0;
color.green = 0;
- gtk_cell_view_set_background_color (GTK_CELL_VIEW (tmp), &color);
+ color.alpha = 1.0;
+ gtk_cell_view_set_background_rgba (GTK_CELL_VIEW (tmp), &color);
displayed_row_changed (GTK_COMBO_BOX (combobox), GTK_CELL_VIEW (tmp));
g_signal_connect (combobox, "changed", G_CALLBACK (displayed_row_changed), tmp);