mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
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:
parent
d8c421f35d
commit
7e9df6443b
11
ChangeLog
11
ChangeLog
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user