~ubuntu-branches/ubuntu/raring/remmina/raring

« back to all changes in this revision

Viewing changes to remmina/src/remmina_scaler.h

  • Committer: Package Import Robot
  • Author(s): Luca Falavigna
  • Date: 2012-02-11 17:28:48 UTC
  • mfrom: (1.2.8)
  • Revision ID: package-import@ubuntu.com-20120211172848-rh3ffi7075qyobuq
Tags: 1.0.0-1
* New upstream release.
  - Compatible with FreeRDP 1.0 (Closes: #658363).
  - Ported to GTK3, this also fixes an incompatibility with
    GTK2 and recent Avahi with GTK3 support, which lead to
    crashes when scanning network services (Closes: #626499).
* debian/patches/libvncserver.patch:
  - Do not use convenience copy of libvncserver.
* debian/patches/g_thread_init.patch:
  - Do not use deprecated g_thread_init function.
* debian/patches/REMMINA_COMMAND_NONE.patch:
  - Removed, obsoleted by GApplication port.
* debian/clean:
  - Remove spurious files created at build-time.
* debian/compat:
  - Bump compatibility level to 9.
* debian/control:
  - Refresh build-dependencies to match new structure.
  - Drop remmina-dev package, no longer used.
  - Build packages once provided by remmina-plugins.
  - Provide remmina-common package.
  - Provide remmina-plugin-gnome package.
* debian/copyright:
  - Refresh copyright information.
* debian/docs:
  - Documentation is no longer accurate, do not ship it anymore.
* debian/remmina-dev.install:
  - Drop remmina-dev package, no longer used.
* debian/remmina-plugin-telepathy.install:
  - Adjust location for Remmina.client.
  - Disable D-BUS support for now.
* debian/rules:
  - Compile with -DWITH_APPINDICATOR=OFF.
  - Do not treat plugins as shared libraries.
* debian/watch:
  - Adjust watch file to match new download location.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Remmina - The GTK+ Remote Desktop Client
 
3
 * Copyright (C) 2009 - Vic Lee 
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or modify
 
6
 * it under the terms of the GNU General Public License as published by
 
7
 * the Free Software Foundation; either version 2 of the License, or
 
8
 * (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 59 Temple Place, Suite 330, 
 
18
 * Boston, MA 02111-1307, USA.
 
19
 */
 
20
 
 
21
#ifndef __REMMINASCALER_H__
 
22
#define __REMMINASCALER_H__
 
23
 
 
24
G_BEGIN_DECLS
 
25
 
 
26
#define REMMINA_TYPE_SCALER               (remmina_scaler_get_type ())
 
27
#define REMMINA_SCALER(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), REMMINA_TYPE_SCALER, RemminaScaler))
 
28
#define REMMINA_SCALER_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST ((klass), REMMINA_TYPE_SCALER, RemminaScalerClass))
 
29
#define REMMINA_IS_SCALER(obj)            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), REMMINA_TYPE_SCALER))
 
30
#define REMMINA_IS_SCALER_CLASS(klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), REMMINA_TYPE_SCALER))
 
31
#define REMMINA_SCALER_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj), REMMINA_TYPE_SCALER, RemminaScalerClass))
 
32
 
 
33
typedef struct _RemminaScalerPriv RemminaScalerPriv;
 
34
 
 
35
typedef struct _RemminaScaler
 
36
{
 
37
        GtkTable table;
 
38
 
 
39
        gint hscale;
 
40
        gint vscale;
 
41
        gboolean aspectscale;
 
42
 
 
43
        RemminaScalerPriv *priv;
 
44
} RemminaScaler;
 
45
 
 
46
typedef struct _RemminaScalerClass
 
47
{
 
48
        GtkTableClass parent_class;
 
49
 
 
50
        void (*scaled)(RemminaScaler *scaler);
 
51
} RemminaScalerClass;
 
52
 
 
53
GType remmina_scaler_get_type(void)
 
54
G_GNUC_CONST;
 
55
 
 
56
GtkWidget* remmina_scaler_new(void);
 
57
 
 
58
void remmina_scaler_set(RemminaScaler *scaler, gint hscale, gint vscale, gboolean chained);
 
59
 
 
60
void remmina_scaler_set_draw_value(RemminaScaler *scaler, gboolean draw_value);
 
61
 
 
62
G_END_DECLS
 
63
 
 
64
#endif  /* __REMMINASCALER_H__  */
 
65