Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 32625 Details for
Bug 52952
(PATCH)gnome-terminal poor text selection algorithm implementation leads to poor performance
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Don't match patterns when not needed
gnome-terminal-2.6.1-dumbo.patch (text/plain), 2.04 KB, created by
devsk
on 2004-06-04 00:35:49 UTC
(
hide
)
Description:
Don't match patterns when not needed
Filename:
MIME Type:
Creator:
devsk
Created:
2004-06-04 00:35:49 UTC
Size:
2.04 KB
patch
obsolete
>diff -urN tmp/gnome-terminal-2.6.1/src/terminal-screen.c work/gnome-terminal-2.6.1/src/terminal-screen.c >--- tmp/gnome-terminal-2.6.1/src/terminal-screen.c 2004-05-17 19:59:47.850620000 -0700 >+++ work/gnome-terminal-2.6.1/src/terminal-screen.c 2004-05-17 20:05:56.833560000 -0700 >@@ -1599,10 +1599,6 @@ > terminal_widget_get_cell_size (term, &char_width, &char_height); > > g_free (screen->priv->matched_string); >- screen->priv->matched_string = >- terminal_widget_check_match (term, >- event->x / char_width, >- event->y / char_height); > dingus_button = ((event->button == 1) || (event->button == 2)); > > if (dingus_button && >@@ -1624,20 +1620,30 @@ > } > > if (dingus_button && >- (event->state & GDK_CONTROL_MASK) && >- (screen->priv->matched_string != NULL)) >+ (event->state & GDK_CONTROL_MASK)) > { > gtk_widget_grab_focus (widget); > >- open_url (screen, screen->priv->matched_string); >- g_free (screen->priv->matched_string); >- screen->priv->matched_string = NULL; >- return TRUE; /* don't do anything else such as select with the click */ >+ screen->priv->matched_string = >+ terminal_widget_check_match (term, >+ event->x / char_width, >+ event->y / char_height); >+ if (screen->priv->matched_string != NULL) >+ { >+ open_url (screen, screen->priv->matched_string); >+ g_free (screen->priv->matched_string); >+ screen->priv->matched_string = NULL; >+ return TRUE; /* don't do anything else such as select with the click */ >+ } > } > > if ((event->button == 3) && > !(event->state & (GDK_SHIFT_MASK | GDK_CONTROL_MASK | GDK_MOD1_MASK))) > { >+ screen->priv->matched_string = >+ terminal_widget_check_match (term, >+ event->x / char_width, >+ event->y / char_height); > terminal_screen_do_popup (screen, event); > return TRUE; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 52952
: 32625