1 /* eggcellrendererpopup.c
2 * Copyright (C) 2002 Anders Carlsson <andersca@gnu.org>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
22 #include "eggcellrendererpopup.h"
24 static void egg_cell_renderer_popup_class_init (EggCellRendererPopupClass
*cell_popup_class
);
25 static GtkCellEditable
*egg_cell_renderer_popup_start_editing (GtkCellRenderer
*cell
,
29 GdkRectangle
*background_area
,
30 GdkRectangle
*cell_area
,
31 GtkCellRendererState flags
);
35 egg_cell_renderer_popup_get_type (void)
37 static GType cell_popup_type
= 0;
41 static const GTypeInfo cell_popup_info
=
43 sizeof (EggCellRendererPopupClass
),
45 NULL
, /* base_finalize */
46 (GClassInitFunc
)egg_cell_renderer_popup_class_init
,
47 NULL
, /* class_finalize */
48 NULL
, /* class_data */
49 sizeof (GtkCellRendererText
),
51 (GInstanceInitFunc
) NULL
,
54 cell_popup_type
= g_type_register_static (GTK_TYPE_CELL_RENDERER_TEXT
, "EggCellRendererPopup", &cell_popup_info
, 0);
57 return cell_popup_type
;
61 egg_cell_renderer_popup_init (EggCellRendererPopup
*cell_popup
)
66 egg_cell_renderer_popup_class_init (EggCellRendererPopupClass
*cell_popup_class
)
72 egg_cell_renderer_popup_new (void)
74 return GTK_CELL_RENDERER (g_object_new (EGG_TYPE_CELL_RENDERER_POPUP
, NULL
));