Mail Archives: geda-user/2014/10/14/16:18:02.1
Verbatim from Gtk+ 2 Reference Manual: "gtk_entry_select_region has
been deprecated since version 2.0 and should not be used in
newly-written code. Use gtk_editable_select_region() instead."
---
gschem/src/x_attribedit.c | 2 +-
gschem/src/x_dialog.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/gschem/src/x_attribedit.c b/gschem/src/x_attribedit.c
index a825623..c744d5f 100644
--- a/gschem/src/x_attribedit.c
+++ b/gschem/src/x_attribedit.c
@@ -520,7 +520,7 @@ void attrib_edit_dialog (GschemToplevel *w_current, OBJECT *attr_obj, int flag)
if (val) {
gtk_entry_set_text(GTK_ENTRY(value_entry), val);
len = strlen(val);
- gtk_entry_select_region(GTK_ENTRY(value_entry), 0, len);
+ gtk_editable_select_region(GTK_EDITABLE(value_entry), 0, len);
}
gtk_object_set_data(GTK_OBJECT(aewindow), "invocation_flag",
GINT_TO_POINTER(flag));
diff --git a/gschem/src/x_dialog.c b/gschem/src/x_dialog.c
index 15f7772..146aea5 100644
--- a/gschem/src/x_dialog.c
+++ b/gschem/src/x_dialog.c
@@ -1052,7 +1052,7 @@ void find_text_dialog(GschemToplevel *w_current)
/* always select the text string in the entry */
textentry = g_object_get_data (G_OBJECT (w_current->tfindwindow), "textentry");
gtk_entry_set_text(GTK_ENTRY(textentry), generic_textstring);
- gtk_entry_select_region(GTK_ENTRY(textentry), 0, -1);
+ gtk_editable_select_region(GTK_EDITABLE(textentry), 0, -1);
}
/*********** End of find text dialog box *******/
@@ -1153,7 +1153,7 @@ void hide_text_dialog(GschemToplevel * w_current)
/* always select the text in the search entry */
textentry = g_object_get_data (G_OBJECT (w_current->thidewindow), "textentry");
gtk_entry_set_text(GTK_ENTRY(textentry), generic_textstring);
- gtk_entry_select_region(GTK_ENTRY(textentry), 0, -1);
+ gtk_editable_select_region(GTK_EDITABLE(textentry), 0, -1);
}
/*********** End of hide text dialog box *******/
@@ -1254,7 +1254,7 @@ void show_text_dialog(GschemToplevel * w_current)
/* always select the text in the entry */
textentry = g_object_get_data (G_OBJECT (w_current->tshowwindow), "textentry");
gtk_entry_set_text(GTK_ENTRY(textentry), generic_textstring);
- gtk_entry_select_region(GTK_ENTRY(textentry), 0, -1);
+ gtk_editable_select_region(GTK_EDITABLE(textentry), 0, -1);
}
/*********** End of show text dialog box *******/
--
2.1.0
- Raw text -