summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2003-12-18 00:39:17 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2003-12-18 00:39:17 +0000
commit3050f437c5505f7fde4d06dcff88664de260150e (patch)
tree2d3cf932879233984d861589b30e65ce619fff29 /gtk
parent66def98927b07cb278e2a900009d289a0dc99d2b (diff)
downloadgtk+-3050f437c5505f7fde4d06dcff88664de260150e.tar.gz
Correct misleading docs. Add docs for the "activate" signal. (#129358,
Thu Dec 18 01:37:59 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkwidget.c (gtk_widget_activate): Correct misleading docs. * gtk/gtkbutton.c (gtk_button_class_init): Add docs for the "activate" signal. (#129358, Ka-Hing Cheung)
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkbutton.c9
-rw-r--r--gtk/gtkwidget.c5
2 files changed, 11 insertions, 3 deletions
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index 6a7269f5ef..d543e36088 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -316,6 +316,15 @@ gtk_button_class_init (GtkButtonClass *klass)
NULL, NULL,
_gtk_marshal_VOID__VOID,
G_TYPE_NONE, 0);
+
+ /**
+ * GtkButton::activate:
+ *
+ * The "activate" signal on GtkButton is an action signal and
+ * emitting it causes the button to animate press then release.
+ * Applications should never connect to this signal, but use the
+ * "clicked" signal.
+ */
button_signals[ACTIVATE] =
g_signal_new ("activate",
G_OBJECT_CLASS_TYPE (object_class),
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 9c66beccc5..b6d45ea85f 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -3557,9 +3557,8 @@ gtk_widget_event_internal (GtkWidget *widget,
*
* For widgets that can be "activated" (buttons, menu items, etc.)
* this function activates them. Activation is what happens when you
- * press Enter on a widget during key navigation; clicking a button,
- * selecting a menu item, etc. If @widget isn't activatable,
- * the function returns %FALSE.
+ * press Enter on a widget during key navigation. If @widget isn't
+ * activatable, the function returns %FALSE.
*
* Return value: %TRUE if the widget was activatable
**/