diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-01-29 11:29:28 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-01-29 11:29:28 +0800 |
commit | d197f1af859dcbd3c170e17bb2662609098aa9d8 (patch) | |
tree | 5f5df02b860d9d7d9496395d9d60fa4a5b18f174 /x11/gnome-terminal/files | |
parent | 403f833919ef6a1a1cda30ec7c37091d3694038f (diff) | |
download | marcuscom-ports-d197f1af859dcbd3c170e17bb2662609098aa9d8.tar marcuscom-ports-d197f1af859dcbd3c170e17bb2662609098aa9d8.tar.gz marcuscom-ports-d197f1af859dcbd3c170e17bb2662609098aa9d8.tar.bz2 marcuscom-ports-d197f1af859dcbd3c170e17bb2662609098aa9d8.tar.lz marcuscom-ports-d197f1af859dcbd3c170e17bb2662609098aa9d8.tar.xz marcuscom-ports-d197f1af859dcbd3c170e17bb2662609098aa9d8.tar.zst marcuscom-ports-d197f1af859dcbd3c170e17bb2662609098aa9d8.zip |
Update to 2.17.90.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8260 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11/gnome-terminal/files')
-rw-r--r-- | x11/gnome-terminal/files/patch-src_terminal-screen.c | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/x11/gnome-terminal/files/patch-src_terminal-screen.c b/x11/gnome-terminal/files/patch-src_terminal-screen.c new file mode 100644 index 000000000..ed0df8903 --- /dev/null +++ b/x11/gnome-terminal/files/patch-src_terminal-screen.c @@ -0,0 +1,82 @@ +--- src/terminal-screen.c.orig Wed Oct 18 15:50:28 2006 ++++ src/terminal-screen.c Wed Oct 18 15:49:42 2006 +@@ -244,6 +244,10 @@ + GtkAllocation *allocation) + { + GtkWidget *child; ++ GtkAllocation old_allocation; ++ ++ old_allocation.width = widget->allocation.width; ++ old_allocation.height = widget->allocation.height; + + widget->allocation = *allocation; + +@@ -251,6 +255,13 @@ + g_assert (child != NULL); + + gtk_widget_size_allocate (child, allocation); ++ ++ if (old_allocation.width != allocation->width || ++ old_allocation.height != allocation->height) ++ { ++ GtkWidget *term = TERMINAL_SCREEN (widget)->priv->term; ++ gtk_widget_queue_resize_no_redraw (term); ++ } + } + + static void +@@ -278,22 +289,22 @@ + #define URLPATH "/[" PATHCHARS "]*[^]'.}>) \t\r\n,\\\"]" + + terminal_widget_match_add (screen->priv->term, +- "\\<" SCHEME "//(" USER "@)?[" HOSTCHARS ".]+" +- "(:[0-9]+)?(" URLPATH ")?\\>/?", FLAVOR_AS_IS); ++ "[[:<:]]" SCHEME "//(" USER "@)?[" HOSTCHARS ".]+" ++ "(:[0-9]+)?(" URLPATH ")?[[:>:]]/?", FLAVOR_AS_IS); + + terminal_widget_match_add (screen->priv->term, +- "\\<(www|ftp)[" HOSTCHARS "]*\\.[" HOSTCHARS ".]+" +- "(:[0-9]+)?(" URLPATH ")?\\>/?", ++ "[[:<:]](www|ftp)[" HOSTCHARS "]*\\.[" HOSTCHARS ".]+" ++ "(:[0-9]+)?(" URLPATH ")?[[:>:]]/?", + FLAVOR_DEFAULT_TO_HTTP); + + terminal_widget_match_add (screen->priv->term, +- "\\<(mailto:)?[a-z0-9][a-z0-9.-]*@[a-z0-9]" +- "[a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+\\>", ++ "[[:<:]](mailto:)?[a-z0-9][a-z0-9.-]*@[a-z0-9]" ++ "[a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+[[:>:]]", + FLAVOR_EMAIL); + + terminal_widget_match_add (screen->priv->term, +- "\\<news:[-A-Z\\^_a-z{|}~!\"#$%&'()*+,./0-9;:=?`]+" +- "@[" HOSTCHARS ".]+(:[0-9]+)?\\>", FLAVOR_AS_IS); ++ "[[:<:]]news:[-A-Z\\^_a-z{|}~!\"#$%&'()*+,./0-9;:=?`]+" ++ "@[" HOSTCHARS ".]+(:[0-9]+)?[[:>:]]", FLAVOR_AS_IS); + + terminal_screen_setup_dnd (screen); + +@@ -548,7 +559,6 @@ + */ + terminal_screen_update_scrollbar (screen); + terminal_window_update_icon (screen->priv->window); +- terminal_window_update_geometry (screen->priv->window); + } + + if (GTK_WIDGET_REALIZED (screen->priv->term)) +@@ -909,7 +919,6 @@ + + terminal_widget_set_allow_bold (term, + terminal_profile_get_allow_bold (profile)); +- terminal_window_set_size (screen->priv->window, screen, TRUE); + } + + static void +@@ -1019,6 +1028,7 @@ + GtkWidget* + terminal_screen_get_widget (TerminalScreen *screen) + { ++ if (screen == NULL) return NULL; + return screen->priv->term; + } + |