forked from AuroraMiddleware/gtk
GtkToolPalette: Use GtkToolItemGroup* instead of GtkWidget* for setter parameters.
See Bug #567729
This commit is contained in:
parent
27f81d8918
commit
18b7ad4182
@ -798,11 +798,13 @@ gtk_tool_palette_set_child_property (GtkContainer *container,
|
|||||||
switch (prop_id)
|
switch (prop_id)
|
||||||
{
|
{
|
||||||
case CHILD_PROP_EXCLUSIVE:
|
case CHILD_PROP_EXCLUSIVE:
|
||||||
gtk_tool_palette_set_exclusive (palette, child, g_value_get_boolean (value));
|
gtk_tool_palette_set_exclusive (palette, GTK_TOOL_ITEM_GROUP (child),
|
||||||
|
g_value_get_boolean (value));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CHILD_PROP_EXPAND:
|
case CHILD_PROP_EXPAND:
|
||||||
gtk_tool_palette_set_expand (palette, child, g_value_get_boolean (value));
|
gtk_tool_palette_set_expand (palette, GTK_TOOL_ITEM_GROUP (child),
|
||||||
|
g_value_get_boolean (value));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -823,11 +825,13 @@ gtk_tool_palette_get_child_property (GtkContainer *container,
|
|||||||
switch (prop_id)
|
switch (prop_id)
|
||||||
{
|
{
|
||||||
case CHILD_PROP_EXCLUSIVE:
|
case CHILD_PROP_EXCLUSIVE:
|
||||||
g_value_set_boolean (value, gtk_tool_palette_get_exclusive (palette, child));
|
g_value_set_boolean (value,
|
||||||
|
gtk_tool_palette_get_exclusive (palette, GTK_TOOL_ITEM_GROUP (child)));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CHILD_PROP_EXPAND:
|
case CHILD_PROP_EXPAND:
|
||||||
g_value_set_boolean (value, gtk_tool_palette_get_expand (palette, child));
|
g_value_set_boolean (value,
|
||||||
|
gtk_tool_palette_get_expand (palette, GTK_TOOL_ITEM_GROUP (child)));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -1295,7 +1299,7 @@ _gtk_tool_palette_compare_groups (gconstpointer a,
|
|||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
gtk_tool_palette_set_group_position (GtkToolPalette *palette,
|
gtk_tool_palette_set_group_position (GtkToolPalette *palette,
|
||||||
GtkWidget *group,
|
GtkToolItemGroup *group,
|
||||||
gint position)
|
gint position)
|
||||||
{
|
{
|
||||||
GtkToolItemGroupInfo *group_new;
|
GtkToolItemGroupInfo *group_new;
|
||||||
@ -1363,7 +1367,7 @@ gtk_tool_palette_group_notify_collapsed (GtkToolItemGroup *group,
|
|||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
gtk_tool_palette_set_exclusive (GtkToolPalette *palette,
|
gtk_tool_palette_set_exclusive (GtkToolPalette *palette,
|
||||||
GtkWidget *group,
|
GtkToolItemGroup *group,
|
||||||
gboolean exclusive)
|
gboolean exclusive)
|
||||||
{
|
{
|
||||||
GtkToolItemGroupInfo *group_info;
|
GtkToolItemGroupInfo *group_info;
|
||||||
@ -1399,7 +1403,7 @@ gtk_tool_palette_set_exclusive (GtkToolPalette *palette,
|
|||||||
}
|
}
|
||||||
|
|
||||||
gtk_tool_palette_group_notify_collapsed (group_info->widget, NULL, palette);
|
gtk_tool_palette_group_notify_collapsed (group_info->widget, NULL, palette);
|
||||||
gtk_widget_child_notify (group, "exclusive");
|
gtk_widget_child_notify (GTK_WIDGET (group), "exclusive");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1414,7 +1418,7 @@ gtk_tool_palette_set_exclusive (GtkToolPalette *palette,
|
|||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
gtk_tool_palette_set_expand (GtkToolPalette *palette,
|
gtk_tool_palette_set_expand (GtkToolPalette *palette,
|
||||||
GtkWidget *group,
|
GtkToolItemGroup *group,
|
||||||
gboolean expand)
|
gboolean expand)
|
||||||
{
|
{
|
||||||
GtkToolItemGroupInfo *group_info;
|
GtkToolItemGroupInfo *group_info;
|
||||||
@ -1432,7 +1436,7 @@ gtk_tool_palette_set_expand (GtkToolPalette *palette,
|
|||||||
{
|
{
|
||||||
group_info->expand = expand;
|
group_info->expand = expand;
|
||||||
gtk_widget_queue_resize (GTK_WIDGET (palette));
|
gtk_widget_queue_resize (GTK_WIDGET (palette));
|
||||||
gtk_widget_child_notify (group, "expand");
|
gtk_widget_child_notify (GTK_WIDGET (group), "expand");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1450,7 +1454,7 @@ gtk_tool_palette_set_expand (GtkToolPalette *palette,
|
|||||||
*/
|
*/
|
||||||
gint
|
gint
|
||||||
gtk_tool_palette_get_group_position (GtkToolPalette *palette,
|
gtk_tool_palette_get_group_position (GtkToolPalette *palette,
|
||||||
GtkWidget *group)
|
GtkToolItemGroup *group)
|
||||||
{
|
{
|
||||||
guint i;
|
guint i;
|
||||||
|
|
||||||
@ -1481,7 +1485,7 @@ gtk_tool_palette_get_group_position (GtkToolPalette *palette,
|
|||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
gtk_tool_palette_get_exclusive (GtkToolPalette *palette,
|
gtk_tool_palette_get_exclusive (GtkToolPalette *palette,
|
||||||
GtkWidget *group)
|
GtkToolItemGroup *group)
|
||||||
{
|
{
|
||||||
gint position;
|
gint position;
|
||||||
GtkToolItemGroupInfo *info;
|
GtkToolItemGroupInfo *info;
|
||||||
@ -1511,7 +1515,7 @@ gtk_tool_palette_get_exclusive (GtkToolPalette *palette,
|
|||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
gtk_tool_palette_get_expand (GtkToolPalette *palette,
|
gtk_tool_palette_get_expand (GtkToolPalette *palette,
|
||||||
GtkWidget *group)
|
GtkToolItemGroup *group)
|
||||||
{
|
{
|
||||||
gint position;
|
gint position;
|
||||||
GtkToolItemGroupInfo *info;
|
GtkToolItemGroupInfo *info;
|
||||||
|
@ -89,21 +89,21 @@ GType gtk_tool_palette_get_type (void) G_G
|
|||||||
GtkWidget* gtk_tool_palette_new (void);
|
GtkWidget* gtk_tool_palette_new (void);
|
||||||
|
|
||||||
void gtk_tool_palette_set_group_position (GtkToolPalette *palette,
|
void gtk_tool_palette_set_group_position (GtkToolPalette *palette,
|
||||||
GtkWidget *group,
|
GtkToolItemGroup *group,
|
||||||
gint position);
|
gint position);
|
||||||
void gtk_tool_palette_set_exclusive (GtkToolPalette *palette,
|
void gtk_tool_palette_set_exclusive (GtkToolPalette *palette,
|
||||||
GtkWidget *group,
|
GtkToolItemGroup *group,
|
||||||
gboolean exclusive);
|
gboolean exclusive);
|
||||||
void gtk_tool_palette_set_expand (GtkToolPalette *palette,
|
void gtk_tool_palette_set_expand (GtkToolPalette *palette,
|
||||||
GtkWidget *group,
|
GtkToolItemGroup *group,
|
||||||
gboolean expand);
|
gboolean expand);
|
||||||
|
|
||||||
gint gtk_tool_palette_get_group_position (GtkToolPalette *palette,
|
gint gtk_tool_palette_get_group_position (GtkToolPalette *palette,
|
||||||
GtkWidget *group);
|
GtkToolItemGroup *group);
|
||||||
gboolean gtk_tool_palette_get_exclusive (GtkToolPalette *palette,
|
gboolean gtk_tool_palette_get_exclusive (GtkToolPalette *palette,
|
||||||
GtkWidget *group);
|
GtkToolItemGroup *group);
|
||||||
gboolean gtk_tool_palette_get_expand (GtkToolPalette *palette,
|
gboolean gtk_tool_palette_get_expand (GtkToolPalette *palette,
|
||||||
GtkWidget *group);
|
GtkToolItemGroup *group);
|
||||||
|
|
||||||
void gtk_tool_palette_set_icon_size (GtkToolPalette *palette,
|
void gtk_tool_palette_set_icon_size (GtkToolPalette *palette,
|
||||||
GtkIconSize icon_size);
|
GtkIconSize icon_size);
|
||||||
|
Loading…
Reference in New Issue
Block a user