summaryrefslogtreecommitdiff
path: root/gtk/gtkentry.c
diff options
context:
space:
mode:
authorSoren Sandmann <sandmann@daimi.au.dk>2002-08-10 09:55:41 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2002-08-10 09:55:41 +0000
commit77eee887f3d1044a2e52ec7fd347842122d4719e (patch)
tree017b7ab3c3f209dcb610be73ab38f615f749f81b /gtk/gtkentry.c
parentaf1f560918354a567916edf8f9fa34ee4df170b8 (diff)
downloadgtk+-77eee887f3d1044a2e52ec7fd347842122d4719e.tar.gz
Minor documentation fixes
2002-08-10 Soren Sandmann <sandmann@daimi.au.dk> * docs/reference/gtk/tree_widget.sgml, docs/reference/gtk/tmpl/gtkdialog.sgml, docs/reference/gtk/tmpl/gtkentry.sgml, docs/reference/gtk/tmpl/gtkfilesel.sgml, docs/reference/gtk/tmpl/gtkfontsel.sgml, docs/reference/gtk/tmpl/gtkfontseldlg.sgml, docs/reference/gtk/tmpl/gtktreemodel.sgml, docs/reference/gtk/tmpl/gtkwidget.sgml, gdk/x11/gdkdisplay-x11.c, gtk/gtkbbox.c, gtk/gtkbox.c, gtk/gtkbutton.c, gtk/gtkcellrenderer.c, gtk/gtkcellrendererpixbuf.c, gtk/gtkcellrenderertext.c, gtk/gtkcheckmenuitem.c, gtk/gtkcontainer.c, gtk/gtkcurve.c, gtk/gtkdialog.h, gtk/gtkentry.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c, gtk/gtkframe.c, gtk/gtkhandlebox.c, gtk/gtkiconfactory.c, gtk/gtkimage.c, gtk/gtkinvisible.c, gtk/gtkitemfactory.c, gtk/gtklabel.c, gtk/gtklayout.c, gtk/gtkmenu.c, gtk/gtkprogress.c, gtk/gtkprogressbar.c, gtk/gtkscrolledwindow.c, gtk/gtksizegroup.c, gtk/gtktable.c, gtk/gtktextiter.c, gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktextview.c, gtk/gtktogglebutton.c, gtk/gtktoolbar.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c, gtk/gtktreestore.c, gtk/gtktreeview.c, gtk/gtktreeviewcolumn.c, gtk/gtkviewport.c, gtk/gtkwidget.c, gtk/gtkwidget.h, gtk/gtkwindow.c: Minor documentation fixes (#89254, patch from Brett Nash; #85809, patch from daten@dnetc.org; #76391, patch from Ross Burton; #74559, Manuel Clos; #73569, #72005, Alexey A. Malyshev; #70061, patch from Dennis Bj"orklund; #64566, #63388, #58328, #57499, #81007, #77349, Vitaly Tishkov; #78932, Vitaly Tishkov, patch from Ross Burton; #73306)
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r--gtk/gtkentry.c26
1 files changed, 19 insertions, 7 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index c6fc15a9d4..7762a36130 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -433,7 +433,7 @@ gtk_entry_class_init (GtkEntryClass *class)
PROP_CURSOR_POSITION,
g_param_spec_int ("cursor_position",
_("Cursor Position"),
- _("The current position of the insertion cursor in chars."),
+ _("The current position of the insertion cursor in chars"),
0,
MAX_SIZE,
0,
@@ -443,7 +443,7 @@ gtk_entry_class_init (GtkEntryClass *class)
PROP_SELECTION_BOUND,
g_param_spec_int ("selection_bound",
_("Selection Bound"),
- _("The position of the opposite end of the selection from the cursor in chars."),
+ _("The position of the opposite end of the selection from the cursor in chars"),
0,
MAX_SIZE,
0,
@@ -461,7 +461,7 @@ gtk_entry_class_init (GtkEntryClass *class)
PROP_MAX_LENGTH,
g_param_spec_int ("max_length",
_("Maximum length"),
- _("Maximum number of characters for this entry. Zero if no maximum."),
+ _("Maximum number of characters for this entry. Zero if no maximum"),
0,
MAX_SIZE,
0,
@@ -478,7 +478,7 @@ gtk_entry_class_init (GtkEntryClass *class)
PROP_HAS_FRAME,
g_param_spec_boolean ("has_frame",
_("Has Frame"),
- _("FALSE removes outside bevel from entry."),
+ _("FALSE removes outside bevel from entry"),
TRUE,
G_PARAM_READABLE | G_PARAM_WRITABLE));
@@ -494,14 +494,14 @@ gtk_entry_class_init (GtkEntryClass *class)
PROP_ACTIVATES_DEFAULT,
g_param_spec_boolean ("activates_default",
_("Activates default"),
- _("Whether to activate the default widget (such as the default button in a dialog) when Enter is pressed."),
+ _("Whether to activate the default widget (such as the default button in a dialog) when Enter is pressed"),
FALSE,
G_PARAM_READABLE | G_PARAM_WRITABLE));
g_object_class_install_property (gobject_class,
PROP_WIDTH_CHARS,
g_param_spec_int ("width_chars",
_("Width in chars"),
- _("Number of characters to leave space for in the entry."),
+ _("Number of characters to leave space for in the entry"),
-1,
G_MAXINT,
-1,
@@ -737,7 +737,7 @@ gtk_entry_class_init (GtkEntryClass *class)
gtk_settings_install_property (g_param_spec_boolean ("gtk-entry-select-on-focus",
_("Select on focus"),
- _("Whether to select the contents of an entry when it is focused."),
+ _("Whether to select the contents of an entry when it is focused"),
TRUE,
G_PARAM_READWRITE));
}
@@ -3440,6 +3440,18 @@ gtk_entry_set_editable (GtkEntry *entry,
gtk_editable_set_editable (GTK_EDITABLE (entry), editable);
}
+/**
+ * gtk_entry_get_text:
+ * @entry: a #GtkEntry
+ *
+ * Retrieves the contents of the entry widget.
+ * See also gtk_editable_get_chars().
+ *
+ * Return value: a pointer to the contents of the widget as a
+ * string. This string points to internally allocated
+ * storage in the widget and must not be freed, modified or
+ * stored.
+ **/
G_CONST_RETURN gchar*
gtk_entry_get_text (GtkEntry *entry)
{