summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1998-05-18 04:31:03 +0000
committerTim Janik <timj@src.gnome.org>1998-05-18 04:31:03 +0000
commitc174981e0b5105cb698e22ee3348286f73f7df57 (patch)
treef19784ebb386a927482122a0e69b97604ee55f93
parent04a70261a4f1e91a488acfca3f098a2a29ab99bf (diff)
downloadgtk+-c174981e0b5105cb698e22ee3348286f73f7df57.tar.gz
changed "proximity-in-event", "drop-data-available-event",
Mon May 18 04:01:41 1998 Tim Janik <timj@gtk.org> * gtk/gtkwidget.c (gtk_widget_class_init): changed "proximity-in-event", "drop-data-available-event", "drop-enter-event" and "drop-leave-event" to be of runtype GTK_RUN_LAST. * gtk/gtkcontainer.c (gtk_container_class_init): likewise for "need-resize". * gtk/gtktipsquery.c (gtk_tips_query_class_init): likewise for "widget-selected".
-rw-r--r--ChangeLog12
-rw-r--r--ChangeLog.pre-2-012
-rw-r--r--ChangeLog.pre-2-1012
-rw-r--r--ChangeLog.pre-2-212
-rw-r--r--ChangeLog.pre-2-412
-rw-r--r--ChangeLog.pre-2-612
-rw-r--r--ChangeLog.pre-2-812
-rw-r--r--gtk/gtkcontainer.c2
-rw-r--r--gtk/gtksignal.c11
-rw-r--r--gtk/gtktipsquery.c4
-rw-r--r--gtk/gtkwidget.c10
11 files changed, 102 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index df4c69d7f2..dcece13289 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+Mon May 18 04:01:41 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkwidget.c (gtk_widget_class_init): changed "proximity-in-event",
+ "drop-data-available-event", "drop-enter-event" and "drop-leave-event"
+ to be of runtype GTK_RUN_LAST.
+
+ * gtk/gtkcontainer.c (gtk_container_class_init): likewise for
+ "need-resize".
+
+ * gtk/gtktipsquery.c (gtk_tips_query_class_init): likewise for
+ "widget-selected".
+
Sat May 16 09:04:32 1998 Tim Janik <timj@gtk.org>
* gtk/gtkfilesel.c (gtk_file_selection_key_press): g_strdup() the
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index df4c69d7f2..dcece13289 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -1,3 +1,15 @@
+Mon May 18 04:01:41 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkwidget.c (gtk_widget_class_init): changed "proximity-in-event",
+ "drop-data-available-event", "drop-enter-event" and "drop-leave-event"
+ to be of runtype GTK_RUN_LAST.
+
+ * gtk/gtkcontainer.c (gtk_container_class_init): likewise for
+ "need-resize".
+
+ * gtk/gtktipsquery.c (gtk_tips_query_class_init): likewise for
+ "widget-selected".
+
Sat May 16 09:04:32 1998 Tim Janik <timj@gtk.org>
* gtk/gtkfilesel.c (gtk_file_selection_key_press): g_strdup() the
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index df4c69d7f2..dcece13289 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,15 @@
+Mon May 18 04:01:41 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkwidget.c (gtk_widget_class_init): changed "proximity-in-event",
+ "drop-data-available-event", "drop-enter-event" and "drop-leave-event"
+ to be of runtype GTK_RUN_LAST.
+
+ * gtk/gtkcontainer.c (gtk_container_class_init): likewise for
+ "need-resize".
+
+ * gtk/gtktipsquery.c (gtk_tips_query_class_init): likewise for
+ "widget-selected".
+
Sat May 16 09:04:32 1998 Tim Janik <timj@gtk.org>
* gtk/gtkfilesel.c (gtk_file_selection_key_press): g_strdup() the
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index df4c69d7f2..dcece13289 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -1,3 +1,15 @@
+Mon May 18 04:01:41 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkwidget.c (gtk_widget_class_init): changed "proximity-in-event",
+ "drop-data-available-event", "drop-enter-event" and "drop-leave-event"
+ to be of runtype GTK_RUN_LAST.
+
+ * gtk/gtkcontainer.c (gtk_container_class_init): likewise for
+ "need-resize".
+
+ * gtk/gtktipsquery.c (gtk_tips_query_class_init): likewise for
+ "widget-selected".
+
Sat May 16 09:04:32 1998 Tim Janik <timj@gtk.org>
* gtk/gtkfilesel.c (gtk_file_selection_key_press): g_strdup() the
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index df4c69d7f2..dcece13289 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -1,3 +1,15 @@
+Mon May 18 04:01:41 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkwidget.c (gtk_widget_class_init): changed "proximity-in-event",
+ "drop-data-available-event", "drop-enter-event" and "drop-leave-event"
+ to be of runtype GTK_RUN_LAST.
+
+ * gtk/gtkcontainer.c (gtk_container_class_init): likewise for
+ "need-resize".
+
+ * gtk/gtktipsquery.c (gtk_tips_query_class_init): likewise for
+ "widget-selected".
+
Sat May 16 09:04:32 1998 Tim Janik <timj@gtk.org>
* gtk/gtkfilesel.c (gtk_file_selection_key_press): g_strdup() the
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index df4c69d7f2..dcece13289 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,3 +1,15 @@
+Mon May 18 04:01:41 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkwidget.c (gtk_widget_class_init): changed "proximity-in-event",
+ "drop-data-available-event", "drop-enter-event" and "drop-leave-event"
+ to be of runtype GTK_RUN_LAST.
+
+ * gtk/gtkcontainer.c (gtk_container_class_init): likewise for
+ "need-resize".
+
+ * gtk/gtktipsquery.c (gtk_tips_query_class_init): likewise for
+ "widget-selected".
+
Sat May 16 09:04:32 1998 Tim Janik <timj@gtk.org>
* gtk/gtkfilesel.c (gtk_file_selection_key_press): g_strdup() the
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index df4c69d7f2..dcece13289 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,15 @@
+Mon May 18 04:01:41 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkwidget.c (gtk_widget_class_init): changed "proximity-in-event",
+ "drop-data-available-event", "drop-enter-event" and "drop-leave-event"
+ to be of runtype GTK_RUN_LAST.
+
+ * gtk/gtkcontainer.c (gtk_container_class_init): likewise for
+ "need-resize".
+
+ * gtk/gtktipsquery.c (gtk_tips_query_class_init): likewise for
+ "widget-selected".
+
Sat May 16 09:04:32 1998 Tim Janik <timj@gtk.org>
* gtk/gtkfilesel.c (gtk_file_selection_key_press): g_strdup() the
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index 966358db93..a905b1e69b 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -176,7 +176,7 @@ gtk_container_class_init (GtkContainerClass *class)
GTK_TYPE_WIDGET);
container_signals[NEED_RESIZE] =
gtk_signal_new ("need_resize",
- GTK_RUN_FIRST,
+ GTK_RUN_LAST,
object_class->type,
GTK_SIGNAL_OFFSET (GtkContainerClass, need_resize),
gtk_container_marshal_signal_4,
diff --git a/gtk/gtksignal.c b/gtk/gtksignal.c
index b7e81d8713..c1be0887ae 100644
--- a/gtk/gtksignal.c
+++ b/gtk/gtksignal.c
@@ -282,9 +282,10 @@ gtk_signal_newv (const gchar *r_name,
if (!handler_key_id)
gtk_signal_init ();
+
name = g_strdup (r_name);
g_strdelimit (name, NULL, '_');
-
+
id = gtk_signal_lookup (name, object_type);
if (id)
{
@@ -295,6 +296,14 @@ gtk_signal_newv (const gchar *r_name,
return 0;
}
+ if (return_val != GTK_TYPE_NONE &&
+ (run_type & GTK_RUN_BOTH) == GTK_RUN_FIRST)
+ {
+ g_warning ("gtk_signal_newv(): signal \"%s\" with return value `%s' excludes GTK_RUN_LAST",
+ name, gtk_type_name (return_val));
+ return 0;
+ }
+
signal = gtk_signal_next_and_invalidate ();
/* signal->signal_id already set */
diff --git a/gtk/gtktipsquery.c b/gtk/gtktipsquery.c
index 9048031ba1..12c5024324 100644
--- a/gtk/gtktipsquery.c
+++ b/gtk/gtktipsquery.c
@@ -184,11 +184,11 @@ gtk_tips_query_class_init (GtkTipsQueryClass *class)
GTK_TYPE_STRING);
tips_query_signals[SIGNAL_WIDGET_SELECTED] =
gtk_signal_new ("widget_selected",
- GTK_RUN_FIRST,
+ GTK_RUN_LAST,
object_class->type,
GTK_SIGNAL_OFFSET (GtkTipsQueryClass, widget_selected),
gtk_tips_query_marshal_widget_selected,
- GTK_TYPE_INT, 4,
+ GTK_TYPE_BOOL, 4,
GTK_TYPE_WIDGET,
GTK_TYPE_STRING,
GTK_TYPE_STRING,
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 63aaa12007..2014fcdd6a 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -605,7 +605,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_TYPE_GDK_EVENT);
widget_signals[PROXIMITY_IN_EVENT] =
gtk_signal_new ("proximity_in_event",
- GTK_RUN_FIRST,
+ GTK_RUN_LAST,
object_class->type,
GTK_SIGNAL_OFFSET (GtkWidgetClass, proximity_in_event),
gtk_widget_marshal_signal_4,
@@ -645,7 +645,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_TYPE_GDK_EVENT);
widget_signals[DROP_ENTER_EVENT] =
gtk_signal_new ("drop_enter_event",
- GTK_RUN_FIRST,
+ GTK_RUN_LAST,
object_class->type,
GTK_SIGNAL_OFFSET (GtkWidgetClass, drop_enter_event),
gtk_widget_marshal_signal_4,
@@ -653,7 +653,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_TYPE_GDK_EVENT);
widget_signals[DROP_LEAVE_EVENT] =
gtk_signal_new ("drop_leave_event",
- GTK_RUN_FIRST,
+ GTK_RUN_LAST,
object_class->type,
GTK_SIGNAL_OFFSET (GtkWidgetClass, drop_leave_event),
gtk_widget_marshal_signal_4,
@@ -661,7 +661,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_TYPE_GDK_EVENT);
widget_signals[DROP_DATA_AVAILABLE_EVENT] =
gtk_signal_new ("drop_data_available_event",
- GTK_RUN_FIRST,
+ GTK_RUN_LAST,
object_class->type,
GTK_SIGNAL_OFFSET (GtkWidgetClass,
drop_data_available_event),
@@ -1567,7 +1567,7 @@ gtk_widget_idle_draw (gpointer data)
{
while (gtk_widget_redraw_queue)
gtk_widget_draw (gtk_widget_redraw_queue->data, NULL);
-
+
return FALSE;
}