[empathy] Update for changes to GTK 3 API.
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Update for changes to GTK 3 API.
- Date: Tue, 5 Oct 2010 15:18:43 +0000 (UTC)
commit c772ac27197ef0440c81bc45496fa78875004da5
Author: Travis Reitter <travis reitter collabora co uk>
Date: Mon Oct 4 11:48:38 2010 -0700
Update for changes to GTK 3 API.
libempathy-gtk/empathy-cell-renderer-activatable.c | 4 +-
libempathy-gtk/empathy-cell-renderer-expander.c | 26 ++++++++++----------
libempathy-gtk/empathy-cell-renderer-text.c | 16 ++++++------
3 files changed, 23 insertions(+), 23 deletions(-)
---
diff --git a/libempathy-gtk/empathy-cell-renderer-activatable.c b/libempathy-gtk/empathy-cell-renderer-activatable.c
index d24f178..9c1a6e5 100644
--- a/libempathy-gtk/empathy-cell-renderer-activatable.c
+++ b/libempathy-gtk/empathy-cell-renderer-activatable.c
@@ -112,8 +112,8 @@ cell_renderer_activatable_activate (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
const gchar *path_string,
- GdkRectangle *background_area,
- GdkRectangle *cell_area,
+ const GdkRectangle *background_area,
+ const GdkRectangle *cell_area,
GtkCellRendererState flags)
{
EmpathyCellRendererActivatable *activatable;
diff --git a/libempathy-gtk/empathy-cell-renderer-expander.c b/libempathy-gtk/empathy-cell-renderer-expander.c
index d9067e0..8e363aa 100644
--- a/libempathy-gtk/empathy-cell-renderer-expander.c
+++ b/libempathy-gtk/empathy-cell-renderer-expander.c
@@ -67,7 +67,7 @@ static void empathy_cell_renderer_expander_set_property (GObject
static void empathy_cell_renderer_expander_finalize (GObject *object);
static void empathy_cell_renderer_expander_get_size (GtkCellRenderer *cell,
GtkWidget *widget,
- GdkRectangle *cell_area,
+ const GdkRectangle *cell_area,
gint *x_offset,
gint *y_offset,
gint *width,
@@ -82,8 +82,8 @@ static gboolean empathy_cell_renderer_expander_activate (GtkCellRenderer
GdkEvent *event,
GtkWidget *widget,
const gchar *path,
- GdkRectangle *background_area,
- GdkRectangle *cell_area,
+ const GdkRectangle *background_area,
+ const GdkRectangle *cell_area,
GtkCellRendererState flags);
G_DEFINE_TYPE (EmpathyCellRendererExpander, empathy_cell_renderer_expander, GTK_TYPE_CELL_RENDERER)
@@ -243,13 +243,13 @@ empathy_cell_renderer_expander_new (void)
}
static void
-empathy_cell_renderer_expander_get_size (GtkCellRenderer *cell,
- GtkWidget *widget,
- GdkRectangle *cell_area,
- gint *x_offset,
- gint *y_offset,
- gint *width,
- gint *height)
+empathy_cell_renderer_expander_get_size (GtkCellRenderer *cell,
+ GtkWidget *widget,
+ const GdkRectangle *cell_area,
+ gint *x_offset,
+ gint *y_offset,
+ gint *width,
+ gint *height)
{
EmpathyCellRendererExpander *expander;
EmpathyCellRendererExpanderPriv *priv;
@@ -422,7 +422,7 @@ empathy_cell_renderer_expander_start_animation (EmpathyCellRendererExpander *exp
GtkTreeView *tree_view,
GtkTreePath *path,
gboolean expanding,
- GdkRectangle *background_area)
+ const GdkRectangle *background_area)
{
EmpathyCellRendererExpanderPriv *priv;
@@ -454,8 +454,8 @@ empathy_cell_renderer_expander_activate (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
const gchar *path_string,
- GdkRectangle *background_area,
- GdkRectangle *cell_area,
+ const GdkRectangle *background_area,
+ const GdkRectangle *cell_area,
GtkCellRendererState flags)
{
EmpathyCellRendererExpander *expander;
diff --git a/libempathy-gtk/empathy-cell-renderer-text.c b/libempathy-gtk/empathy-cell-renderer-text.c
index 321b710..d64af0d 100644
--- a/libempathy-gtk/empathy-cell-renderer-text.c
+++ b/libempathy-gtk/empathy-cell-renderer-text.c
@@ -52,7 +52,7 @@ static void cell_renderer_text_set_property (GObject *o
GParamSpec *pspec);
static void cell_renderer_text_get_size (GtkCellRenderer *cell,
GtkWidget *widget,
- GdkRectangle *cell_area,
+ const GdkRectangle *cell_area,
gint *x_offset,
gint *y_offset,
gint *width,
@@ -240,13 +240,13 @@ cell_renderer_text_set_property (GObject *object,
}
static void
-cell_renderer_text_get_size (GtkCellRenderer *cell,
- GtkWidget *widget,
- GdkRectangle *cell_area,
- gint *x_offset,
- gint *y_offset,
- gint *width,
- gint *height)
+cell_renderer_text_get_size (GtkCellRenderer *cell,
+ GtkWidget *widget,
+ const GdkRectangle *cell_area,
+ gint *x_offset,
+ gint *y_offset,
+ gint *width,
+ gint *height)
{
EmpathyCellRendererText *celltext;
EmpathyCellRendererTextPriv *priv;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]