4
4
* Copyright (C) 2002 Anders Carlsson <andersca@gnu.org>
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Library General Public
8
* License as published by the Free Software Foundation; either
9
* version 2 of the License, or (at your option) any later version.
11
* This library is distributed in the hope that it will be useful,
6
* This file is part of gnome-terminal.
8
* Gnome-terminal is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* Gnome-terminal is distributed in the hope that it will be useful,
12
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Library General Public License for more details.
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
16
* You should have received a copy of the GNU Library General Public
17
* License along with this library; if not, write to the
18
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
* Boston, MA 02111-1307, USA.
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <http://www.gnu.org/licenses/>.
22
22
#include "terminal-intl.h"
23
23
#include "terminal-widget.h"
25
25
#include <string.h>
26
#include <X11/extensions/Xrender.h>
26
28
#include <vte/vte.h>
27
29
#include <gdk/gdkx.h>
196
198
match = vte_terminal_match_check(VTE_TERMINAL(widget), column, row, &tag);
197
199
for (tags = data->url_tags; tags != NULL; tags = g_slist_next(tags))
198
if (GPOINTER_TO_INT(((TagData*)tags->data)->tag) == tag)
201
TagData *tag_data = (TagData*) tags->data;
202
if (GPOINTER_TO_INT(tag_data->tag) == tag)
205
*flavor = tag_data->flavor;
222
227
match = vte_terminal_match_check(VTE_TERMINAL(widget), column, row, &tag);
223
228
for (tags = data->skey_tags; tags != NULL; tags = g_slist_next(tags))
224
if (GPOINTER_TO_INT(((TagData*)tags->data)->tag) == tag)
230
TagData *tag_data = (TagData*) tags->data;
231
if (GPOINTER_TO_INT(tag_data->tag) == tag)
234
*flavor = tag_data->flavor;
376
terminal_widget_set_background_opacity (GtkWidget *widget,
379
g_return_if_fail(VTE_IS_TERMINAL(widget));
380
vte_terminal_set_opacity(VTE_TERMINAL(widget), factor * 0xffff);
367
384
terminal_widget_set_background_scrolls (GtkWidget *widget,
368
385
gboolean setting)
617
634
dpy = gdk_x11_display_get_xdisplay (gdk_display_get_default ());
618
635
has_render = (XRenderQueryExtension (dpy, &event_base, &error_base) &&
619
(XRenderFindVisualFormat (dpy, DefaultVisual (dpy, DefaultScreen (dpy))) != 0));
636
(XRenderFindVisualFormat (dpy, DefaultVisual (dpy, DefaultScreen (dpy))) != NULL));
622
639
vte_terminal_set_font (VTE_TERMINAL (widget), font_desc);