forked from AuroraMiddleware/gtk
Add API for sealed member "visible"
This commit is contained in:
parent
2bd2a024ed
commit
548f3a8c69
@ -630,11 +630,13 @@ gtk_cell_renderer_get_padding
|
||||
gtk_cell_renderer_get_sensitive
|
||||
gtk_cell_renderer_get_size
|
||||
gtk_cell_renderer_get_type G_GNUC_CONST
|
||||
gtk_cell_renderer_get_visible
|
||||
gtk_cell_renderer_render
|
||||
gtk_cell_renderer_set_alignment
|
||||
gtk_cell_renderer_set_fixed_size
|
||||
gtk_cell_renderer_set_padding
|
||||
gtk_cell_renderer_set_sensitive
|
||||
gtk_cell_renderer_set_visible
|
||||
gtk_cell_renderer_start_editing
|
||||
gtk_cell_renderer_stop_editing
|
||||
#endif
|
||||
|
@ -859,6 +859,44 @@ gtk_cell_renderer_get_padding (GtkCellRenderer *cell,
|
||||
*ypad = cell->ypad;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_cell_renderer_set_visible:
|
||||
* @cell: A #GtkCellRenderer
|
||||
* @visible: the visibility of the cell
|
||||
*
|
||||
* Sets the cell renderer's visibility.
|
||||
*
|
||||
* Since: 2.18
|
||||
**/
|
||||
void
|
||||
gtk_cell_renderer_set_visible (GtkCellRenderer *cell,
|
||||
gboolean visible)
|
||||
{
|
||||
g_return_if_fail (GTK_IS_CELL_RENDERER (cell));
|
||||
|
||||
if (cell->visible != visible)
|
||||
{
|
||||
cell->visible = visible ? TRUE : FALSE;
|
||||
g_object_notify (G_OBJECT (cell), "visible");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_cell_renderer_get_visible:
|
||||
* @cell: A #GtkCellRenderer
|
||||
*
|
||||
* Returns the cell renderer's visibility.
|
||||
*
|
||||
* Since: 2.18
|
||||
**/
|
||||
gboolean
|
||||
gtk_cell_renderer_get_visible (GtkCellRenderer *cell)
|
||||
{
|
||||
g_return_val_if_fail (GTK_IS_CELL_RENDERER (cell), FALSE);
|
||||
|
||||
return cell->visible;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_cell_renderer_set_sensitive:
|
||||
* @cell: A #GtkCellRenderer
|
||||
|
@ -174,6 +174,10 @@ void gtk_cell_renderer_get_padding (GtkCellRenderer *cell,
|
||||
gint *xpad,
|
||||
gint *ypad);
|
||||
|
||||
void gtk_cell_renderer_set_visible (GtkCellRenderer *cell,
|
||||
gboolean visible);
|
||||
gboolean gtk_cell_renderer_get_visible (GtkCellRenderer *cell);
|
||||
|
||||
void gtk_cell_renderer_set_sensitive (GtkCellRenderer *cell,
|
||||
gboolean sensitive);
|
||||
gboolean gtk_cell_renderer_get_sensitive (GtkCellRenderer *cell);
|
||||
|
Loading…
Reference in New Issue
Block a user