summaryrefslogtreecommitdiff
path: root/capplets/keybindings/eggcellrendererkeys.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-01-13 00:41:42 +0100
committerPablo Barciela <[email protected]>2018-01-13 01:08:29 +0100
commitd146d8f263b3d12d6e2c3fc7da1b4fc28915db57 (patch)
tree808268baa2e0e82b7e0a4306a2d20e054d82692e /capplets/keybindings/eggcellrendererkeys.c
parentc0b62d94e48cb96f3c7681e4b84b9abf9b89853d (diff)
downloadmate-control-center-d146d8f263b3d12d6e2c3fc7da1b4fc28915db57.tar.bz2
mate-control-center-d146d8f263b3d12d6e2c3fc7da1b4fc28915db57.tar.xz
eggcellrendererkeys.c: Fix build warnings:
assignment from incompatible pointer type
Diffstat (limited to 'capplets/keybindings/eggcellrendererkeys.c')
-rw-r--r--capplets/keybindings/eggcellrendererkeys.c37
1 files changed, 18 insertions, 19 deletions
diff --git a/capplets/keybindings/eggcellrendererkeys.c b/capplets/keybindings/eggcellrendererkeys.c
index 4c313fda..af96f332 100644
--- a/capplets/keybindings/eggcellrendererkeys.c
+++ b/capplets/keybindings/eggcellrendererkeys.c
@@ -27,8 +27,8 @@ static GtkCellEditable *egg_cell_renderer_keys_start_editing (GtkCellRenderer
GdkEvent *event,
GtkWidget *widget,
const gchar *path,
- GdkRectangle *background_area,
- GdkRectangle *cell_area,
+ const GdkRectangle *background_area,
+ const GdkRectangle *cell_area,
GtkCellRendererState flags);
@@ -40,13 +40,13 @@ static void egg_cell_renderer_keys_set_property (GObject *object,
guint param_id,
const GValue *value,
GParamSpec *pspec);
-static void egg_cell_renderer_keys_get_size (GtkCellRenderer *cell,
- GtkWidget *widget,
- GdkRectangle *cell_area,
- gint *x_offset,
- gint *y_offset,
- gint *width,
- gint *height);
+static void egg_cell_renderer_keys_get_size (GtkCellRenderer *cell,
+ GtkWidget *widget,
+ const GdkRectangle *cell_area,
+ gint *x_offset,
+ gint *y_offset,
+ gint *width,
+ gint *height);
enum {
@@ -339,14 +339,13 @@ static gboolean is_modifier(guint keycode)
}
static void
-egg_cell_renderer_keys_get_size (GtkCellRenderer *cell,
- GtkWidget *widget,
- GdkRectangle *cell_area,
- gint *x_offset,
- gint *y_offset,
- gint *width,
- gint *height)
-
+egg_cell_renderer_keys_get_size(GtkCellRenderer *cell,
+ GtkWidget *widget,
+ const GdkRectangle *cell_area,
+ gint *x_offset,
+ gint *y_offset,
+ gint *width,
+ gint *height)
{
EggCellRendererKeys *keys = (EggCellRendererKeys *) cell;
GtkRequisition requisition;
@@ -583,8 +582,8 @@ egg_cell_renderer_keys_start_editing (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
const gchar *path,
- GdkRectangle *background_area,
- GdkRectangle *cell_area,
+ const GdkRectangle *background_area,
+ const GdkRectangle *cell_area,
GtkCellRendererState flags)
{
GtkCellRendererText *celltext;