[evolution-data-server/gtk3] Fix minor compiler warnings
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gtk3] Fix minor compiler warnings
- Date: Tue, 14 Dec 2010 13:44:52 +0000 (UTC)
commit 5bcc6c8b6f3f775c4ddd4cc310897ee5cd52bddf
Author: Milan Crha <mcrha redhat com>
Date: Tue Dec 14 14:44:21 2010 +0100
Fix minor compiler warnings
libedataserverui/e-cell-renderer-color.c | 6 +++---
libedataserverui/e-name-selector-dialog.c | 2 +-
libedataserverui/e-source-selector.c | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libedataserverui/e-cell-renderer-color.c b/libedataserverui/e-cell-renderer-color.c
index 93d51cf..70c341c 100644
--- a/libedataserverui/e-cell-renderer-color.c
+++ b/libedataserverui/e-cell-renderer-color.c
@@ -47,7 +47,7 @@ G_DEFINE_TYPE (ECellRendererColor, e_cell_renderer_color, GTK_TYPE_CELL_RENDERER
static void
cell_renderer_color_get_size (GtkCellRenderer *cell,
GtkWidget *widget,
- GdkRectangle *cell_area,
+ const GdkRectangle *cell_area,
gint *x_offset,
gint *y_offset,
gint *width,
@@ -98,8 +98,8 @@ static void
cell_renderer_color_render (GtkCellRenderer *cell,
cairo_t *cr,
GtkWidget *widget,
- GdkRectangle *background_area,
- GdkRectangle *cell_area,
+ const GdkRectangle *background_area,
+ const GdkRectangle *cell_area,
GtkCellRendererState flags)
{
ECellRendererColorPrivate *priv;
diff --git a/libedataserverui/e-name-selector-dialog.c b/libedataserverui/e-name-selector-dialog.c
index 77976ad..a24410e 100644
--- a/libedataserverui/e-name-selector-dialog.c
+++ b/libedataserverui/e-name-selector-dialog.c
@@ -239,7 +239,7 @@ e_name_selector_dialog_init (ENameSelectorDialog *name_selector_dialog)
gtk_table_attach (GTK_TABLE (show_contacts_table), combobox_category, 1, 2, 1, 2,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (GTK_FILL), 0, 0);
- gtk_combo_box_text_append_text (GTK_COMBO_BOX (combobox_category), _("Any Category"));
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combobox_category), _("Any Category"));
tmp_str = g_strconcat ("<b>", _("Co_ntacts"), "</b>", NULL);
label36 = gtk_label_new_with_mnemonic (tmp_str);
diff --git a/libedataserverui/e-source-selector.c b/libedataserverui/e-source-selector.c
index 1655b56..156cc4f 100644
--- a/libedataserverui/e-source-selector.c
+++ b/libedataserverui/e-source-selector.c
@@ -96,8 +96,8 @@ safe_toggle_activate (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)
{
if (event->type == GDK_BUTTON_PRESS && cell_area) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]