~ubuntu-branches/ubuntu/natty/vte/natty

« back to all changes in this revision

Viewing changes to src/vteskel.c

  • Committer: Bazaar Package Importer
  • Author(s): Baptiste Mille-Mathias
  • Date: 2010-02-03 21:37:20 UTC
  • mfrom: (1.1.52 upstream)
  • Revision ID: james.westby@ubuntu.com-20100203213720-8i71qo23f8uqr2sa
Tags: 1:0.23.5-0ubuntu1
* New upstream version (LP: #516770):
  - Fix unintented soversion bump
  - Add public API vte_terminal_write_contents()
  - Update docs
  - Disable symbol deprecation stuff since they were broken
  - Merge pangocairo draw impl into vtedraw
  - Bugs fixed in this release:
  - Flickering when resizing a vte widget
  - Support xterm bracketed paste mode
* debian/patches/90_autoreconf.patch: refreshed

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2003 Red Hat, Inc.
3
 
 *
4
 
 * This is free software; you can redistribute it and/or modify it under
5
 
 * the terms of the GNU Library General Public License as published by
6
 
 * the Free Software Foundation; either version 2 of the License, or
7
 
 * (at your option) any later version.
8
 
 *
9
 
 * This program is distributed in the hope that it will be useful, but
10
 
 * WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
 
 * General Public License for more details.
13
 
 *
14
 
 * You should have received a copy of the GNU Library General Public
15
 
 * License along with this program; if not, write to the Free Software
16
 
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
 
 */
18
 
 
19
 
 
20
 
#include <config.h>
21
 
 
22
 
#include <sys/param.h>
23
 
#include <stdio.h>
24
 
#include <string.h>
25
 
#include <gtk/gtk.h>
26
 
#include "debug.h"
27
 
#include "vtebg.h"
28
 
#include "vtedraw.h"
29
 
 
30
 
static void
31
 
_vte_skel_clear(struct _vte_draw *draw,
32
 
                gint x, gint y, gint width, gint height)
33
 
{
34
 
        g_message ("_vte_skel_clear: %d,%d+%d,%d",
35
 
                   x, y, width, height);
36
 
}
37
 
 
38
 
static void
39
 
_vte_skel_get_text_metrics(struct _vte_draw *draw,
40
 
                           gint *width, gint *height, gint *ascent)
41
 
{
42
 
        g_message ("_vte_skel_get_text_metrics");
43
 
}
44
 
 
45
 
static void
46
 
_vte_skel_draw_text(struct _vte_draw *draw,
47
 
                    struct _vte_draw_text_request *requests, gsize n_requests,
48
 
                    GdkColor *color, guchar alpha, gboolean bold)
49
 
{
50
 
        g_message ("_vte_skel_draw_text: %d chars",
51
 
                   n_requests);
52
 
}
53
 
 
54
 
static void
55
 
_vte_skel_fill_rectangle(struct _vte_draw *draw,
56
 
                         gint x, gint y, gint width, gint height,
57
 
                         GdkColor *color, guchar alpha)
58
 
{
59
 
        g_message ("_vte_skel_fill_rectangle: %d,%d+%d,%d",
60
 
                   x, y, width, height);
61
 
}
62
 
 
63
 
const struct _vte_draw_impl _vte_draw_skel = {
64
 
        "null",
65
 
        NULL, /* check */
66
 
        NULL, /* create */
67
 
        NULL, /* destroy */
68
 
        NULL, /* get_visual */
69
 
        NULL, /* get_colormap */
70
 
        NULL, /* start */
71
 
        NULL, /* end */
72
 
        NULL, /* set_background_solid */
73
 
        NULL, /* set_background_image */
74
 
        NULL, /* set_background_scroll */
75
 
        NULL, /* clip */
76
 
        TRUE, /* always_requires_clear */
77
 
        _vte_skel_clear,
78
 
        NULL, /* set_text_font */
79
 
        _vte_skel_get_text_metrics,
80
 
        NULL, /* get_char_width */
81
 
        NULL, /* has_bold */
82
 
        _vte_skel_draw_text,
83
 
        NULL, /* draw_has_char */
84
 
        NULL, /* draw_rectangle */
85
 
        _vte_skel_fill_rectangle
86
 
};