summaryrefslogtreecommitdiff
path: root/libnautilus
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2001-11-02 15:43:10 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-11-02 15:43:10 +0000
commitc91bb9d1382277a5ac80d0dce524d5e2c8fd3cda (patch)
tree67c34687413977075eeddbc46c4dfd7989643c7a /libnautilus
parent9ab32f9cc919fa13017ded258983db457d6eb658 (diff)
downloadnautilus-c91bb9d1382277a5ac80d0dce524d5e2c8fd3cda.tar.gz
remove GtkText workaround (I'm also checking in a fix for the bug being
2001-11-01 Havoc Pennington <hp@pobox.com> * libnautilus/nautilus-clipboard.c (select_all): remove GtkText workaround (I'm also checking in a fix for the bug being worked around) * libnautilus-private/nautilus-bookmark.c (nautilus_bookmark_menu_item_new): replace some PixmapMenuItem with ImageMenuItem * src/file-manager/fm-directory-view.c (set_script_environment_variables): use eel_gtk_window_get_geometry_string * src/nautilus-zoom-control.c: just nuke the draw method, it ain't coming back * src/nautilus-window.c (set_initial_window_geometry): remove gtk_window_set_policy() that was useless, and replace set_usize with set_size_request. (nautilus_window_constructed): remove menu_bar_no_resize_hack, I have no idea what GTK bug it's talking about, neither does the referenced bug report say, but if we see it again we'll fix it. (plus it says the bug is unsigned math, and GTK 2 pretty much did a global s/uint/int/, especially in the size request/alloc code) * src/nautilus-desktop-window.c (realize): just remove the gnome_win_hints stuff, as the FIXME says, it's dead. (realize): remove the set_decorations, set_functions, and the move_resize, all cruft (nautilus_desktop_window_init): simplify some cruft in here * src/nautilus-bookmarks-window.c (nautilus_bookmarks_window_save_geometry): use eel_gtk_window_get_geometry_string * src/nautilus-window.c (nautilus_window_save_geometry): ditto
Diffstat (limited to 'libnautilus')
-rw-r--r--libnautilus/nautilus-clipboard.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/libnautilus/nautilus-clipboard.c b/libnautilus/nautilus-clipboard.c
index 0da902ee4..e9982c377 100644
--- a/libnautilus/nautilus-clipboard.c
+++ b/libnautilus/nautilus-clipboard.c
@@ -136,21 +136,9 @@ clear_callback (BonoboUIComponent *ui,
static void
select_all (GtkEditable *editable)
-{
- int end;
-
- /* Workaround for bug in GtkText. It can't handle a -1
- * passed in to set_position.
- */
- end = -1;
-#if GNOME2_CONVERSION_COMPLETE
- if (GTK_IS_TEXT (editable)) {
- end = gtk_text_get_length (GTK_TEXT (editable));
- }
-#endif
-
- gtk_editable_set_position (editable, end);
- gtk_editable_select_region (editable, 0, end);
+{
+ gtk_editable_set_position (editable, -1);
+ gtk_editable_select_region (editable, 0, -1);
}
static gboolean