Updated Spanish translation
[anjuta-git-plugin.git] / libegg / eggcellrendererpopup.c
blobab1d0c5bc9c4cfea95b0e38fe27b23b3d6c030b7
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.
20 #include <gtk/gtk.h>
21 #include <gdk/gdkx.h>
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,
26 GdkEvent *event,
27 GtkWidget *widget,
28 const gchar *path,
29 GdkRectangle *background_area,
30 GdkRectangle *cell_area,
31 GtkCellRendererState flags);
34 GType
35 egg_cell_renderer_popup_get_type (void)
37 static GType cell_popup_type = 0;
39 if (!cell_popup_type)
41 static const GTypeInfo cell_popup_info =
43 sizeof (EggCellRendererPopupClass),
44 NULL, /* base_init */
45 NULL, /* base_finalize */
46 (GClassInitFunc)egg_cell_renderer_popup_class_init,
47 NULL, /* class_finalize */
48 NULL, /* class_data */
49 sizeof (GtkCellRendererText),
50 0, /* n_preallocs */
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;
60 static void
61 egg_cell_renderer_popup_init (EggCellRendererPopup *cell_popup)
65 static void
66 egg_cell_renderer_popup_class_init (EggCellRendererPopupClass *cell_popup_class)
71 GtkCellRenderer *
72 egg_cell_renderer_popup_new (void)
74 return GTK_CELL_RENDERER (g_object_new (EGG_TYPE_CELL_RENDERER_POPUP, NULL));