summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-10-13 19:37:05 +0200
committerGravatar waker <wakeroid@gmail.com>2011-10-13 19:37:05 +0200
commit31b79adc967c41024ba193f08aa03e41559bbbcf (patch)
tree8822a52225d93f752880f5436c90c6a895697cc6 /plugins
parentb5e16886c2a315676c03d0f1791ef751281c4adb (diff)
gtkui: fixed warning about unimplemented 'editing-canceled' when using gtk>=2.20
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gtkui/ddbcellrenderertextmultiline.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/gtkui/ddbcellrenderertextmultiline.c b/plugins/gtkui/ddbcellrenderertextmultiline.c
index cd54e1cf..3b1ac61b 100644
--- a/plugins/gtkui/ddbcellrenderertextmultiline.c
+++ b/plugins/gtkui/ddbcellrenderertextmultiline.c
@@ -90,6 +90,9 @@ enum {
};
static gboolean ddb_cell_editable_text_view_real_key_press_event (GtkWidget* base, GdkEventKey* event);
static void ddb_cell_editable_text_view_real_start_editing (GtkCellEditable* base, GdkEvent* event);
+#if GTK_CHECK_VERSION(2,20,0)
+static void ddb_cell_editable_text_view_real_editing_canceled (GtkCellRenderer*);
+#endif
DdbCellEditableTextView* ddb_cell_editable_text_view_new (void);
DdbCellEditableTextView* ddb_cell_editable_text_view_construct (GType object_type);
static void ddb_cell_editable_text_view_finalize (GObject* obj);
@@ -164,6 +167,10 @@ static void ddb_cell_editable_text_view_real_start_editing (GtkCellEditable* bas
g_return_if_fail (event != NULL);
}
+#if GTK_CHECK_VERSION(2,20,0)
+static void ddb_cell_editable_text_view_real_editing_canceled (GtkCellRenderer* base) {
+}
+#endif
DdbCellEditableTextView* ddb_cell_editable_text_view_construct (GType object_type) {
DdbCellEditableTextView * self = NULL;
@@ -447,8 +454,10 @@ DdbCellRendererTextMultiline* ddb_cell_renderer_text_multiline_new (void) {
static void ddb_cell_renderer_text_multiline_class_init (DdbCellRendererTextMultilineClass * klass) {
ddb_cell_renderer_text_multiline_parent_class = g_type_class_peek_parent (klass);
g_type_class_add_private (klass, sizeof (DdbCellRendererTextMultilinePrivate));
- GTK_CELL_RENDERER_CLASS (klass)->start_editing = ddb_cell_renderer_text_multiline_real_start_editing;
G_OBJECT_CLASS (klass)->finalize = ddb_cell_renderer_text_multiline_finalize;
+#if GTK_CHECK_VERSION(2,20,0)
+ GTK_CELL_RENDERER_CLASS (klass)->editing_canceled = (void (*)(GtkCellRenderer*)) ddb_cell_editable_text_view_real_editing_canceled;
+#endif
}