Blame gtk/gtkcelllayout.c

Packit 98cdb6
/* gtkcelllayout.c
Packit 98cdb6
 * Copyright (C) 2003  Kristian Rietveld  <kris@gtk.org>
Packit 98cdb6
 *
Packit 98cdb6
 * This library is free software; you can redistribute it and/or
Packit 98cdb6
 * modify it under the terms of the GNU Library General Public
Packit 98cdb6
 * License as published by the Free Software Foundation; either
Packit 98cdb6
 * version 2 of the License, or (at your option) any later version.
Packit 98cdb6
 *
Packit 98cdb6
 * This library is distributed in the hope that it will be useful,
Packit 98cdb6
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 98cdb6
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 98cdb6
 * Library General Public License for more details.
Packit 98cdb6
 *
Packit 98cdb6
 * You should have received a copy of the GNU Library General Public
Packit 98cdb6
 * License along with this library; if not, write to the
Packit 98cdb6
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Packit 98cdb6
 * Boston, MA 02111-1307, USA.
Packit 98cdb6
 */
Packit 98cdb6
Packit 98cdb6
#include "config.h"
Packit 98cdb6
#include <string.h>
Packit 98cdb6
#include <stdlib.h>
Packit 98cdb6
#include <errno.h>
Packit 98cdb6
#include "gtkcelllayout.h"
Packit 98cdb6
#include "gtkintl.h"
Packit 98cdb6
#include "gtkalias.h"
Packit 98cdb6
Packit 98cdb6
GType
Packit 98cdb6
gtk_cell_layout_get_type (void)
Packit 98cdb6
{
Packit 98cdb6
  static GType cell_layout_type = 0;
Packit 98cdb6
Packit 98cdb6
  if (! cell_layout_type)
Packit 98cdb6
    {
Packit 98cdb6
      const GTypeInfo cell_layout_info =
Packit 98cdb6
      {
Packit 98cdb6
        sizeof (GtkCellLayoutIface),
Packit 98cdb6
        NULL,
Packit 98cdb6
        NULL,
Packit 98cdb6
        NULL,
Packit 98cdb6
        NULL,
Packit 98cdb6
        NULL,
Packit 98cdb6
        0,
Packit 98cdb6
        0,
Packit 98cdb6
        NULL
Packit 98cdb6
      };
Packit 98cdb6
Packit 98cdb6
      cell_layout_type =
Packit 98cdb6
        g_type_register_static (G_TYPE_INTERFACE, I_("GtkCellLayout"),
Packit 98cdb6
                                &cell_layout_info, 0);
Packit 98cdb6
Packit 98cdb6
      g_type_interface_add_prerequisite (cell_layout_type, G_TYPE_OBJECT);
Packit 98cdb6
    }
Packit 98cdb6
Packit 98cdb6
  return cell_layout_type;
Packit 98cdb6
}
Packit 98cdb6
Packit 98cdb6
/**
Packit 98cdb6
 * gtk_cell_layout_pack_start:
Packit 98cdb6
 * @cell_layout: A #GtkCellLayout.
Packit 98cdb6
 * @cell: A #GtkCellRenderer.
Packit 98cdb6
 * @expand: %TRUE if @cell is to be given extra space allocated to @cell_layout.
Packit 98cdb6
 *
Packit 98cdb6
 * Packs the @cell into the beginning of @cell_layout. If @expand is %FALSE,
Packit 98cdb6
 * then the @cell is allocated no more space than it needs. Any unused space
Packit 98cdb6
 * is divided evenly between cells for which @expand is %TRUE.
Packit 98cdb6
 *
Packit 98cdb6
 * Note that reusing the same cell renderer is not supported. 
Packit 98cdb6
 *
Packit 98cdb6
 * Since: 2.4
Packit 98cdb6
 */
Packit 98cdb6
void
Packit 98cdb6
gtk_cell_layout_pack_start (GtkCellLayout   *cell_layout,
Packit 98cdb6
                            GtkCellRenderer *cell,
Packit 98cdb6
                            gboolean         expand)
Packit 98cdb6
{
Packit 98cdb6
  g_return_if_fail (GTK_IS_CELL_LAYOUT (cell_layout));
Packit 98cdb6
  g_return_if_fail (GTK_IS_CELL_RENDERER (cell));
Packit 98cdb6
Packit 98cdb6
  (* GTK_CELL_LAYOUT_GET_IFACE (cell_layout)->pack_start) (cell_layout,
Packit 98cdb6
                                                           cell,
Packit 98cdb6
                                                           expand);
Packit 98cdb6
}
Packit 98cdb6
Packit 98cdb6
/**
Packit 98cdb6
 * gtk_cell_layout_pack_end:
Packit 98cdb6
 * @cell_layout: A #GtkCellLayout.
Packit 98cdb6
 * @cell: A #GtkCellRenderer.
Packit 98cdb6
 * @expand: %TRUE if @cell is to be given extra space allocated to @cell_layout.
Packit 98cdb6
 *
Packit 98cdb6
 * Adds the @cell to the end of @cell_layout. If @expand is %FALSE, then the
Packit 98cdb6
 * @cell is allocated no more space than it needs. Any unused space is
Packit 98cdb6
 * divided evenly between cells for which @expand is %TRUE.
Packit 98cdb6
 *
Packit 98cdb6
 * Note that reusing the same cell renderer is not supported. 
Packit 98cdb6
 *
Packit 98cdb6
 * Since: 2.4
Packit 98cdb6
 */
Packit 98cdb6
void
Packit 98cdb6
gtk_cell_layout_pack_end (GtkCellLayout   *cell_layout,
Packit 98cdb6
                          GtkCellRenderer *cell,
Packit 98cdb6
                          gboolean         expand)
Packit 98cdb6
{
Packit 98cdb6
  g_return_if_fail (GTK_IS_CELL_LAYOUT (cell_layout));
Packit 98cdb6
  g_return_if_fail (GTK_IS_CELL_RENDERER (cell));
Packit 98cdb6
Packit 98cdb6
  (* GTK_CELL_LAYOUT_GET_IFACE (cell_layout)->pack_end) (cell_layout,
Packit 98cdb6
                                                         cell,
Packit 98cdb6
                                                         expand);
Packit 98cdb6
}
Packit 98cdb6
Packit 98cdb6
/**
Packit 98cdb6
 * gtk_cell_layout_clear:
Packit 98cdb6
 * @cell_layout: A #GtkCellLayout.
Packit 98cdb6
 *
Packit 98cdb6
 * Unsets all the mappings on all renderers on @cell_layout and
Packit 98cdb6
 * removes all renderers from @cell_layout.
Packit 98cdb6
 *
Packit 98cdb6
 * Since: 2.4
Packit 98cdb6
 */
Packit 98cdb6
void
Packit 98cdb6
gtk_cell_layout_clear (GtkCellLayout *cell_layout)
Packit 98cdb6
{
Packit 98cdb6
  g_return_if_fail (GTK_IS_CELL_LAYOUT (cell_layout));
Packit 98cdb6
Packit 98cdb6
  (* GTK_CELL_LAYOUT_GET_IFACE (cell_layout)->clear) (cell_layout);
Packit 98cdb6
}
Packit 98cdb6
Packit 98cdb6
static void
Packit 98cdb6
gtk_cell_layout_set_attributesv (GtkCellLayout   *cell_layout,
Packit 98cdb6
                                 GtkCellRenderer *cell,
Packit 98cdb6
                                 va_list          args)
Packit 98cdb6
{
Packit 98cdb6
  gchar *attribute;
Packit 98cdb6
  gint column;
Packit 98cdb6
  GtkCellLayoutIface *iface;
Packit 98cdb6
Packit 98cdb6
  attribute = va_arg (args, gchar *);
Packit 98cdb6
Packit 98cdb6
  iface = GTK_CELL_LAYOUT_GET_IFACE (cell_layout);
Packit 98cdb6
Packit 98cdb6
  (* iface->clear_attributes) (cell_layout, cell);
Packit 98cdb6
Packit 98cdb6
  while (attribute != NULL)
Packit 98cdb6
    {
Packit 98cdb6
      column = va_arg (args, gint);
Packit 98cdb6
      (* iface->add_attribute) (cell_layout, cell, attribute, column);
Packit 98cdb6
      attribute = va_arg (args, gchar *);
Packit 98cdb6
    }
Packit 98cdb6
}
Packit 98cdb6
Packit 98cdb6
/**
Packit 98cdb6
 * gtk_cell_layout_set_attributes:
Packit 98cdb6
 * @cell_layout: A #GtkCellLayout.
Packit 98cdb6
 * @cell: A #GtkCellRenderer.
Packit 98cdb6
 * @Varargs: A %NULL-terminated list of attributes.
Packit 98cdb6
 *
Packit 98cdb6
 * Sets the attributes in list as the attributes of @cell_layout. The
Packit 98cdb6
 * attributes should be in attribute/column order, as in
Packit 98cdb6
 * gtk_cell_layout_add_attribute(). All existing attributes are removed, and
Packit 98cdb6
 * replaced with the new attributes.
Packit 98cdb6
 *
Packit 98cdb6
 * Since: 2.4
Packit 98cdb6
 */
Packit 98cdb6
void
Packit 98cdb6
gtk_cell_layout_set_attributes (GtkCellLayout   *cell_layout,
Packit 98cdb6
                                GtkCellRenderer *cell,
Packit 98cdb6
                                ...)
Packit 98cdb6
{
Packit 98cdb6
  va_list args;
Packit 98cdb6
Packit 98cdb6
  g_return_if_fail (GTK_IS_CELL_LAYOUT (cell_layout));
Packit 98cdb6
  g_return_if_fail (GTK_IS_CELL_RENDERER (cell));
Packit 98cdb6
Packit 98cdb6
  va_start (args, cell);
Packit 98cdb6
  gtk_cell_layout_set_attributesv (cell_layout, cell, args);
Packit 98cdb6
  va_end (args);
Packit 98cdb6
}
Packit 98cdb6
Packit 98cdb6
/**
Packit 98cdb6
 * gtk_cell_layout_add_attribute:
Packit 98cdb6
 * @cell_layout: A #GtkCellLayout.
Packit 98cdb6
 * @cell: A #GtkCellRenderer.
Packit 98cdb6
 * @attribute: An attribute on the renderer.
Packit 98cdb6
 * @column: The column position on the model to get the attribute from.
Packit 98cdb6
 *
Packit 98cdb6
 * Adds an attribute mapping to the list in @cell_layout. The @column is the
Packit 98cdb6
 * column of the model to get a value from, and the @attribute is the
Packit 98cdb6
 * parameter on @cell to be set from the value. So for example if column 2
Packit 98cdb6
 * of the model contains strings, you could have the "text" attribute of a
Packit 98cdb6
 * #GtkCellRendererText get its values from column 2.
Packit 98cdb6
 *
Packit 98cdb6
 * Since: 2.4
Packit 98cdb6
 */
Packit 98cdb6
void
Packit 98cdb6
gtk_cell_layout_add_attribute (GtkCellLayout   *cell_layout,
Packit 98cdb6
                               GtkCellRenderer *cell,
Packit 98cdb6
                               const gchar     *attribute,
Packit 98cdb6
                               gint             column)
Packit 98cdb6
{
Packit 98cdb6
  g_return_if_fail (GTK_IS_CELL_LAYOUT (cell_layout));
Packit 98cdb6
  g_return_if_fail (GTK_IS_CELL_RENDERER (cell));
Packit 98cdb6
  g_return_if_fail (attribute != NULL);
Packit 98cdb6
  g_return_if_fail (column >= 0);
Packit 98cdb6
Packit 98cdb6
  (* GTK_CELL_LAYOUT_GET_IFACE (cell_layout)->add_attribute) (cell_layout,
Packit 98cdb6
                                                              cell,
Packit 98cdb6
                                                              attribute,
Packit 98cdb6
                                                              column);
Packit 98cdb6
}
Packit 98cdb6
Packit 98cdb6
/**
Packit 98cdb6
 * gtk_cell_layout_set_cell_data_func:
Packit 98cdb6
 * @cell_layout: A #GtkCellLayout.
Packit 98cdb6
 * @cell: A #GtkCellRenderer.
Packit 98cdb6
 * @func: The #GtkCellLayoutDataFunc to use.
Packit 98cdb6
 * @func_data: The user data for @func.
Packit 98cdb6
 * @destroy: The destroy notification for @func_data.
Packit 98cdb6
 *
Packit 98cdb6
 * Sets the #GtkCellLayoutDataFunc to use for @cell_layout. This function
Packit 98cdb6
 * is used instead of the standard attributes mapping for setting the
Packit 98cdb6
 * column value, and should set the value of @cell_layout's cell renderer(s)
Packit 98cdb6
 * as appropriate. @func may be %NULL to remove and older one.
Packit 98cdb6
 *
Packit 98cdb6
 * Since: 2.4
Packit 98cdb6
 */
Packit 98cdb6
void
Packit 98cdb6
gtk_cell_layout_set_cell_data_func (GtkCellLayout         *cell_layout,
Packit 98cdb6
                                    GtkCellRenderer       *cell,
Packit 98cdb6
                                    GtkCellLayoutDataFunc  func,
Packit 98cdb6
                                    gpointer               func_data,
Packit 98cdb6
                                    GDestroyNotify         destroy)
Packit 98cdb6
{
Packit 98cdb6
  g_return_if_fail (GTK_IS_CELL_LAYOUT (cell_layout));
Packit 98cdb6
  g_return_if_fail (GTK_IS_CELL_RENDERER (cell));
Packit 98cdb6
Packit 98cdb6
  (* GTK_CELL_LAYOUT_GET_IFACE (cell_layout)->set_cell_data_func) (cell_layout,
Packit 98cdb6
                                                                   cell,
Packit 98cdb6
                                                                   func,
Packit 98cdb6
                                                                   func_data,
Packit 98cdb6
                                                                   destroy);
Packit 98cdb6
}
Packit 98cdb6
Packit 98cdb6
/**
Packit 98cdb6
 * gtk_cell_layout_clear_attributes:
Packit 98cdb6
 * @cell_layout: A #GtkCellLayout.
Packit 98cdb6
 * @cell: A #GtkCellRenderer to clear the attribute mapping on.
Packit 98cdb6
 *
Packit 98cdb6
 * Clears all existing attributes previously set with
Packit 98cdb6
 * gtk_cell_layout_set_attributes().
Packit 98cdb6
 *
Packit 98cdb6
 * Since: 2.4
Packit 98cdb6
 */
Packit 98cdb6
void
Packit 98cdb6
gtk_cell_layout_clear_attributes (GtkCellLayout   *cell_layout,
Packit 98cdb6
                                  GtkCellRenderer *cell)
Packit 98cdb6
{
Packit 98cdb6
  g_return_if_fail (GTK_IS_CELL_LAYOUT (cell_layout));
Packit 98cdb6
  g_return_if_fail (GTK_IS_CELL_RENDERER (cell));
Packit 98cdb6
Packit 98cdb6
  (* GTK_CELL_LAYOUT_GET_IFACE (cell_layout)->clear_attributes) (cell_layout,
Packit 98cdb6
                                                                 cell);
Packit 98cdb6
}
Packit 98cdb6
Packit 98cdb6
/**
Packit 98cdb6
 * gtk_cell_layout_reorder:
Packit 98cdb6
 * @cell_layout: A #GtkCellLayout.
Packit 98cdb6
 * @cell: A #GtkCellRenderer to reorder.
Packit 98cdb6
 * @position: New position to insert @cell at.
Packit 98cdb6
 *
Packit 98cdb6
 * Re-inserts @cell at @position. Note that @cell has already to be packed
Packit 98cdb6
 * into @cell_layout for this to function properly.
Packit 98cdb6
 *
Packit 98cdb6
 * Since: 2.4
Packit 98cdb6
 */
Packit 98cdb6
void
Packit 98cdb6
gtk_cell_layout_reorder (GtkCellLayout   *cell_layout,
Packit 98cdb6
                         GtkCellRenderer *cell,
Packit 98cdb6
                         gint             position)
Packit 98cdb6
{
Packit 98cdb6
  g_return_if_fail (GTK_IS_CELL_LAYOUT (cell_layout));
Packit 98cdb6
  g_return_if_fail (GTK_IS_CELL_RENDERER (cell));
Packit 98cdb6
Packit 98cdb6
  (* GTK_CELL_LAYOUT_GET_IFACE (cell_layout)->reorder) (cell_layout,
Packit 98cdb6
                                                        cell,
Packit 98cdb6
                                                        position);
Packit 98cdb6
}
Packit 98cdb6
Packit 98cdb6
/**
Packit 98cdb6
 * gtk_cell_layout_get_cells:
Packit 98cdb6
 * @cell_layout: a #GtkCellLayout
Packit 98cdb6
 * 
Packit 98cdb6
 * Returns the cell renderers which have been added to @cell_layout.
Packit 98cdb6
 *
Packit 98cdb6
 * Return value: (element-type GtkCellRenderer) (transfer container): a list of cell renderers. The list, but not the
Packit 98cdb6
 *   renderers has been newly allocated and should be freed with
Packit 98cdb6
 *   g_list_free() when no longer needed.
Packit 98cdb6
 *
Packit 98cdb6
 * Since: 2.12
Packit 98cdb6
 */
Packit 98cdb6
GList *
Packit 98cdb6
gtk_cell_layout_get_cells (GtkCellLayout *cell_layout)
Packit 98cdb6
{
Packit 98cdb6
  GtkCellLayoutIface *iface;
Packit 98cdb6
Packit 98cdb6
  g_return_val_if_fail (GTK_IS_CELL_LAYOUT (cell_layout), NULL);
Packit 98cdb6
Packit 98cdb6
  iface = GTK_CELL_LAYOUT_GET_IFACE (cell_layout);  
Packit 98cdb6
  if (iface->get_cells)
Packit 98cdb6
    return iface->get_cells (cell_layout);
Packit 98cdb6
Packit 98cdb6
  return NULL;
Packit 98cdb6
}
Packit 98cdb6
Packit 98cdb6
typedef struct {
Packit 98cdb6
  GtkCellLayout   *cell_layout;
Packit 98cdb6
  GtkCellRenderer *renderer;
Packit 98cdb6
  gchar           *attr_name;
Packit 98cdb6
} AttributesSubParserData;
Packit 98cdb6
Packit 98cdb6
static void
Packit 98cdb6
attributes_start_element (GMarkupParseContext *context,
Packit 98cdb6
			  const gchar         *element_name,
Packit 98cdb6
			  const gchar        **names,
Packit 98cdb6
			  const gchar        **values,
Packit 98cdb6
			  gpointer             user_data,
Packit 98cdb6
			  GError             **error)
Packit 98cdb6
{
Packit 98cdb6
  AttributesSubParserData *parser_data = (AttributesSubParserData*)user_data;
Packit 98cdb6
  guint i;
Packit 98cdb6
Packit 98cdb6
  if (strcmp (element_name, "attribute") == 0)
Packit 98cdb6
    {
Packit 98cdb6
      for (i = 0; names[i]; i++)
Packit 98cdb6
	if (strcmp (names[i], "name") == 0)
Packit 98cdb6
	  parser_data->attr_name = g_strdup (values[i]);
Packit 98cdb6
    }
Packit 98cdb6
  else if (strcmp (element_name, "attributes") == 0)
Packit 98cdb6
    return;
Packit 98cdb6
  else
Packit 98cdb6
    g_warning ("Unsupported tag for GtkCellLayout: %s\n", element_name);
Packit 98cdb6
}
Packit 98cdb6
Packit 98cdb6
static void
Packit 98cdb6
attributes_text_element (GMarkupParseContext *context,
Packit 98cdb6
			 const gchar         *text,
Packit 98cdb6
			 gsize                text_len,
Packit 98cdb6
			 gpointer             user_data,
Packit 98cdb6
			 GError             **error)
Packit 98cdb6
{
Packit 98cdb6
  AttributesSubParserData *parser_data = (AttributesSubParserData*)user_data;
Packit 98cdb6
  glong l;
Packit 98cdb6
  gchar *endptr;
Packit 98cdb6
  gchar *string;
Packit 98cdb6
  
Packit 98cdb6
  if (!parser_data->attr_name)
Packit 98cdb6
    return;
Packit 98cdb6
Packit 98cdb6
  errno = 0;
Packit 98cdb6
  string = g_strndup (text, text_len);
Packit 98cdb6
  l = strtol (string, &endptr, 0);
Packit 98cdb6
  if (errno || endptr == string)
Packit 98cdb6
    {
Packit 98cdb6
      g_set_error (error, 
Packit 98cdb6
                   GTK_BUILDER_ERROR,
Packit 98cdb6
                   GTK_BUILDER_ERROR_INVALID_VALUE,
Packit 98cdb6
                   "Could not parse integer `%s'",
Packit 98cdb6
                   string);
Packit 98cdb6
      g_free (string);
Packit 98cdb6
      return;
Packit 98cdb6
    }
Packit 98cdb6
  g_free (string);
Packit 98cdb6
Packit 98cdb6
  gtk_cell_layout_add_attribute (parser_data->cell_layout,
Packit 98cdb6
				 parser_data->renderer,
Packit 98cdb6
				 parser_data->attr_name, l);
Packit 98cdb6
  g_free (parser_data->attr_name);
Packit 98cdb6
  parser_data->attr_name = NULL;
Packit 98cdb6
}
Packit 98cdb6
Packit 98cdb6
static const GMarkupParser attributes_parser =
Packit 98cdb6
  {
Packit 98cdb6
    attributes_start_element,
Packit 98cdb6
    NULL,
Packit 98cdb6
    attributes_text_element,
Packit 98cdb6
  };
Packit 98cdb6
Packit 98cdb6
gboolean
Packit 98cdb6
_gtk_cell_layout_buildable_custom_tag_start (GtkBuildable  *buildable,
Packit 98cdb6
					     GtkBuilder    *builder,
Packit 98cdb6
					     GObject       *child,
Packit 98cdb6
					     const gchar   *tagname,
Packit 98cdb6
					     GMarkupParser *parser,
Packit 98cdb6
					     gpointer      *data)
Packit 98cdb6
{
Packit 98cdb6
  AttributesSubParserData *parser_data;
Packit 98cdb6
Packit 98cdb6
  if (!child)
Packit 98cdb6
    return FALSE;
Packit 98cdb6
Packit 98cdb6
  if (strcmp (tagname, "attributes") == 0)
Packit 98cdb6
    {
Packit 98cdb6
      parser_data = g_slice_new0 (AttributesSubParserData);
Packit 98cdb6
      parser_data->cell_layout = GTK_CELL_LAYOUT (buildable);
Packit 98cdb6
      parser_data->renderer = GTK_CELL_RENDERER (child);
Packit 98cdb6
      parser_data->attr_name = NULL;
Packit 98cdb6
Packit 98cdb6
      *parser = attributes_parser;
Packit 98cdb6
      *data = parser_data;
Packit 98cdb6
      return TRUE;
Packit 98cdb6
    }
Packit 98cdb6
Packit 98cdb6
  return FALSE;
Packit 98cdb6
}
Packit 98cdb6
Packit 98cdb6
void
Packit 98cdb6
_gtk_cell_layout_buildable_custom_tag_end (GtkBuildable *buildable,
Packit 98cdb6
					   GtkBuilder   *builder,
Packit 98cdb6
					   GObject      *child,
Packit 98cdb6
					   const gchar  *tagname,
Packit 98cdb6
					   gpointer     *data)
Packit 98cdb6
{
Packit 98cdb6
  AttributesSubParserData *parser_data;
Packit 98cdb6
Packit 98cdb6
  parser_data = (AttributesSubParserData*)data;
Packit 98cdb6
  g_assert (!parser_data->attr_name);
Packit 98cdb6
  g_slice_free (AttributesSubParserData, parser_data);
Packit 98cdb6
}
Packit 98cdb6
Packit 98cdb6
void
Packit 98cdb6
_gtk_cell_layout_buildable_add_child (GtkBuildable      *buildable,
Packit 98cdb6
				      GtkBuilder        *builder,
Packit 98cdb6
				      GObject           *child,
Packit 98cdb6
				      const gchar       *type)
Packit 98cdb6
{
Packit 98cdb6
  GtkCellLayoutIface *iface;
Packit 98cdb6
  
Packit 98cdb6
  g_return_if_fail (GTK_IS_CELL_LAYOUT (buildable));
Packit 98cdb6
  g_return_if_fail (GTK_IS_CELL_RENDERER (child));
Packit 98cdb6
Packit 98cdb6
  iface = GTK_CELL_LAYOUT_GET_IFACE (buildable);
Packit 98cdb6
  g_return_if_fail (iface->pack_start != NULL);
Packit 98cdb6
  iface->pack_start (GTK_CELL_LAYOUT (buildable), GTK_CELL_RENDERER (child), FALSE);
Packit 98cdb6
}
Packit 98cdb6
Packit 98cdb6
#define __GTK_CELL_LAYOUT_C__
Packit 98cdb6
#include "gtkaliasdef.c"