gtk+ r21820 - in trunk: . gtk
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r21820 - in trunk: . gtk
- Date: Sat, 29 Nov 2008 07:22:00 +0000 (UTC)
Author: matthiasc
Date: Sat Nov 29 07:22:00 2008
New Revision: 21820
URL: http://svn.gnome.org/viewvc/gtk+?rev=21820&view=rev
Log:
improve deprecation annotation
Modified:
trunk/ChangeLog
trunk/gtk/gtkentry.c
Modified: trunk/gtk/gtkentry.c
==============================================================================
--- trunk/gtk/gtkentry.c (original)
+++ trunk/gtk/gtkentry.c Sat Nov 29 07:22:00 2008
@@ -333,7 +333,6 @@
CursorType type,
gint *strong_x,
gint *weak_x);
-static void gtk_entry_adjust_scroll (GtkEntry *entry);
static gint gtk_entry_move_visually (GtkEntry *editable,
gint start,
gint count);
@@ -1480,7 +1479,7 @@
gtk_im_context_set_client_window (entry->im_context, entry->text_area);
- gtk_entry_adjust_scroll (entry);
+ _gtk_entry_adjust_scroll (entry);
gtk_entry_update_primary_selection (entry);
}
@@ -3442,7 +3441,7 @@
if (gtk_widget_has_screen (GTK_WIDGET (entry)))
{
- gtk_entry_adjust_scroll (entry);
+ _gtk_entry_adjust_scroll (entry);
gtk_entry_queue_draw (entry);
update_im_cursor_location (entry);
@@ -4042,8 +4041,8 @@
}
}
-static void
-gtk_entry_adjust_scroll (GtkEntry *entry)
+void
+_gtk_entry_adjust_scroll (GtkEntry *entry)
{
GtkEntryPrivate *priv = GTK_ENTRY_GET_PRIVATE (entry);
gint min_offset, max_offset;
@@ -4565,14 +4564,9 @@
*
* Creates a new #GtkEntry widget with the given maximum length.
*
- * Note: the existence of this function is inconsistent
- * with the rest of the GTK+ API. The normal setup would
- * be to just require the user to make an extra call
- * to gtk_entry_set_max_length() instead. It is not
- * expected that this function will be removed, but
- * it would be better practice not to use it.
- *
- * Return value: a new #GtkEntry.
+ * Return value: a new #GtkEntry
+ *
+ * Deprecated: Use gtk_entry_set_max_length() instead.
**/
GtkWidget*
gtk_entry_new_with_max_length (gint max)
@@ -5803,7 +5797,8 @@
gint sel_start, sel_end;
GtkEditable *editable = GTK_EDITABLE (widget);
-
+
+ g_print ("GtkEntry drag_data_get class handler\n");
if (gtk_editable_get_selection_bounds (editable, &sel_start, &sel_end))
{
gchar *str = gtk_entry_get_public_chars (GTK_ENTRY (widget), sel_start, sel_end);
@@ -5823,6 +5818,7 @@
GtkEditable *editable = GTK_EDITABLE (widget);
+ g_print ("entry_drag_data_delete\n");
if (GTK_ENTRY (widget)->editable &&
gtk_editable_get_selection_bounds (editable, &sel_start, &sel_end))
gtk_editable_delete_text (editable, sel_start, sel_end);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]