Carlos López-Camey
Carlos López-Camey

Reputation: 2515

GtkWidget -> GtkToolItem function? Adding a GtkWidget to a GtkToolItemGroup

I was looking at GtkToolPalette, it looks great. But I was wondering at the possibility to add a GtkHScale to one of the groups of the palette. I've checked GtkToolItemGroup can add only items of type GtkToolItem; Is there a way to get a GtkToolItem for an existing GtkWidget?

Upvotes: 0

Views: 141

Answers (1)

erick2red
erick2red

Reputation: 1310

Look at this:

GtkToolItems are widgets that can appear on a toolbar. To create a toolbar item that contain something else than a button, use gtk_tool_item_new(). Use gtk_container_add() to add a child widget to the tool item.

from here

Upvotes: 1

Related Questions