Patch from Juan Pablo Mendoza Mendoza to fix things so clicking inside

Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
	to fix things so clicking inside selection leaves cursor
	at point where clicked. (#50324)

	* gtk/gtksettings.c (gtk_settings_class_init): Restore
	sane value for default double click time.

	* tests/testtext.c (test_init): Really path to input modules.
This commit is contained in:
Owen Taylor 2001-05-03 11:15:26 +00:00 committed by Owen Taylor
parent d8c421f35d
commit 7e9df6443b
10 changed files with 89 additions and 4 deletions

View File

@ -1,3 +1,14 @@
Thu May 3 07:00:09 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
to fix things so clicking inside selection leaves cursor
at point where clicked. (#50324)
* gtk/gtksettings.c (gtk_settings_class_init): Restore
sane value for default double click time.
* tests/testtext.c (test_init): Really path to input modules.
2001-05-03 Sven Neumann <sven@convergence.de>
* demos/testpixbuf-save.c: include target-specific headers as

View File

@ -1,3 +1,14 @@
Thu May 3 07:00:09 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
to fix things so clicking inside selection leaves cursor
at point where clicked. (#50324)
* gtk/gtksettings.c (gtk_settings_class_init): Restore
sane value for default double click time.
* tests/testtext.c (test_init): Really path to input modules.
2001-05-03 Sven Neumann <sven@convergence.de>
* demos/testpixbuf-save.c: include target-specific headers as

View File

@ -1,3 +1,14 @@
Thu May 3 07:00:09 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
to fix things so clicking inside selection leaves cursor
at point where clicked. (#50324)
* gtk/gtksettings.c (gtk_settings_class_init): Restore
sane value for default double click time.
* tests/testtext.c (test_init): Really path to input modules.
2001-05-03 Sven Neumann <sven@convergence.de>
* demos/testpixbuf-save.c: include target-specific headers as

View File

@ -1,3 +1,14 @@
Thu May 3 07:00:09 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
to fix things so clicking inside selection leaves cursor
at point where clicked. (#50324)
* gtk/gtksettings.c (gtk_settings_class_init): Restore
sane value for default double click time.
* tests/testtext.c (test_init): Really path to input modules.
2001-05-03 Sven Neumann <sven@convergence.de>
* demos/testpixbuf-save.c: include target-specific headers as

View File

@ -1,3 +1,14 @@
Thu May 3 07:00:09 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
to fix things so clicking inside selection leaves cursor
at point where clicked. (#50324)
* gtk/gtksettings.c (gtk_settings_class_init): Restore
sane value for default double click time.
* tests/testtext.c (test_init): Really path to input modules.
2001-05-03 Sven Neumann <sven@convergence.de>
* demos/testpixbuf-save.c: include target-specific headers as

View File

@ -1,3 +1,14 @@
Thu May 3 07:00:09 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
to fix things so clicking inside selection leaves cursor
at point where clicked. (#50324)
* gtk/gtksettings.c (gtk_settings_class_init): Restore
sane value for default double click time.
* tests/testtext.c (test_init): Really path to input modules.
2001-05-03 Sven Neumann <sven@convergence.de>
* demos/testpixbuf-save.c: include target-specific headers as

View File

@ -1,3 +1,14 @@
Thu May 3 07:00:09 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
to fix things so clicking inside selection leaves cursor
at point where clicked. (#50324)
* gtk/gtksettings.c (gtk_settings_class_init): Restore
sane value for default double click time.
* tests/testtext.c (test_init): Really path to input modules.
2001-05-03 Sven Neumann <sven@convergence.de>
* demos/testpixbuf-save.c: include target-specific headers as

View File

@ -129,7 +129,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
g_param_spec_int ("gtk-double-click-timeout",
_("Double Click Timeout"),
_("Maximum time allowed between two clicks for them to be considered a double click"),
0, G_MAXINT, 1000,
0, G_MAXINT, 250,
G_PARAM_READWRITE),
NULL);
g_assert (result == PROP_DOUBLE_CLICK_TIMEOUT);

View File

@ -3163,10 +3163,18 @@ gtk_text_view_button_release_event (GtkWidget *widget, GdkEventButton *event)
}
else
{
GtkTextIter iter;
/* Unselect everything; probably we were dragging, or clicked
* outside the text.
* without dragging to remove selection.
*/
gtk_text_view_unselect (text_view);
gtk_text_layout_get_iter_at_pixel (text_view->layout,
&iter,
event->x + text_view->xoffset,
event->y + text_view->yoffset);
gtk_text_buffer_place_cursor (get_buffer (text_view), &iter);
return FALSE;
}
}

View File

@ -2234,7 +2234,7 @@ test_init ()
if (file_exists ("../gdk-pixbuf/.libs/libpixbufloader-pnm.so"))
{
putenv ("GDK_PIXBUF_MODULEDIR=../gdk-pixbuf/.libs");
putenv ("GTK_IM_MODULE_FILE=../gtk/gtk.immodules");
putenv ("GTK_IM_MODULE_FILE=../modules/input/gtk.immodules");
}
}