[gtk-list] Re: [gtk-list][patch] C++ et al
- From: Tim Janik <Tim Janik Hamburg Netsurf DE>
- To: gtk-list redhat com
- Subject: [gtk-list] Re: [gtk-list][patch] C++ et al
- Date: Sat, 3 May 1997 08:50:24 +0200 (CEST)
On Fri, 2 May 1997, Chris Marston wrote:
> Here's what I get:
> /usr/local/include/gtk/gtkentry.h:64: parse error before 'delete'
>
> Seems to be one of those c vs c++ things.
yep, delete is a reserved word in c++.
just change the structure field name (until peter comes
up with a solution) like this:
--- gtk+g-0.99.9/gtk/gtkentry.h Fri Apr 18 02:20:38 1997
+++ gtk+/gtk/gtkentry.h Sat May 3 08:41:01 1997
@@ -61,7 +61,7 @@
gchar *text,
gint length,
gint *position);
- void (* delete) (GtkEntry *entry,
+ void (* _delete) (GtkEntry *entry,
gint start_pos,
gint end_pos);
void (* changed) (GtkEntry *entry);
--- gtk+g-0.99.9/gtk/gtkentry.c Sun Apr 27 06:00:38 1997
+++ gtk+/gtk/gtkentry.c Sat May 3 08:43:59 1997
@@ -240,7 +240,7 @@
entry_signals[1] = gtk_signal_new ("delete",
GTK_RUN_LAST,
object_class->type,
- GTK_SIGNAL_OFFSET (GtkEntryClass, delete),
+ GTK_SIGNAL_OFFSET (GtkEntryClass, _delete),
gtk_entry_marshal_signal_2, GTK_PARAM_NONE, 2,
GTK_PARAM_INT, GTK_PARAM_INT);
entry_signals[2] = gtk_signal_new ("changed",
@@ -271,7 +271,7 @@
widget_class->selection_notify_event = gtk_entry_selection_notify;
class->insert = gtk_real_entry_insert_text;
- class->delete = gtk_real_entry_delete_text;
+ class->_delete = gtk_real_entry_delete_text;
class->changed = NULL;
}
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]