Inline wxGtkTreeSetVisibleProp() function
No real changes, just get rid of a trivial helper function which is only used once since the changes of the previous commit and copy its code directly into the caller.
This commit is contained in:
parent
1c9c48c346
commit
610eeb476b
1 changed files with 3 additions and 9 deletions
|
|
@ -3199,14 +3199,6 @@ gtk_dataview_header_button_press_callback( GtkWidget *WXUNUSED(widget),
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
// Helper for wxGtkTreeCellDataFunc() below.
|
||||
static void wxGtkTreeSetVisibleProp(GtkCellRenderer *renderer, gboolean visible)
|
||||
{
|
||||
wxGtkValue gvalue( G_TYPE_BOOLEAN );
|
||||
g_value_set_boolean( gvalue, visible );
|
||||
g_object_set_property( G_OBJECT(renderer), "visible", gvalue );
|
||||
}
|
||||
|
||||
extern "C"
|
||||
{
|
||||
|
||||
|
|
@ -3241,7 +3233,9 @@ static void wxGtkTreeCellDataFunc( GtkTreeViewColumn *WXUNUSED(column),
|
|||
visible = cell->PrepareForItem(wx_model, item, column);
|
||||
}
|
||||
|
||||
wxGtkTreeSetVisibleProp(renderer, visible);
|
||||
wxGtkValue gvalue( G_TYPE_BOOLEAN );
|
||||
g_value_set_boolean( gvalue, visible );
|
||||
g_object_set_property( G_OBJECT(renderer), "visible", gvalue );
|
||||
}
|
||||
|
||||
} // extern "C"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue