Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Archive
vinagre
Commits
593f8336
Commit
593f8336
authored
Jun 26, 2010
by
Jonh Wendell
Browse files
Implement 'take screenshot' for SSH connections
parent
220b2058
Changes
3
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
593f8336
...
...
@@ -157,6 +157,26 @@ if test "x$enable_ssh" = "xyes" ; then
fi
AM_CONDITIONAL(SSH, test "x$enable_ssh" = "xyes")
dnl ****************************
dnl *** Checks for RDP stuff ***
dnl ****************************
AC_ARG_ENABLE(rdp,
AS_HELP_STRING([--enable-rdp],
[Enable RDP plugin (default=yes)]),
enable_rdp=${enableval},
enable_rdp=yes)
if test "x$enable_rdp" = "xyes" ; then
AC_PATH_PROG(RDESKTOP_PROGRAM, rdesktop, "rdesktop")
PKG_CHECK_MODULES(RDP,\
libxml-2.0 >= $XML_REQUIRED)
AC_SUBST(RDP_CFLAGS)
AC_SUBST(RDP_LIBS)
AC_DEFINE([VINAGRE_ENABLE_RDP],[1],[We want rdp support])
fi
AM_CONDITIONAL(RDP, test "x$enable_rdp" = "xyes")
# Check for telepathy
AC_ARG_ENABLE(telepathy,
AS_HELP_STRING([--enable-telepathy=@<:@no/yes/auto@:>@],
...
...
@@ -283,6 +303,7 @@ plugin-loaders/c/Makefile
plugins/Makefile
plugins/vnc/Makefile
plugins/ssh/Makefile
plugins/rdp/Makefile
vinagre/Makefile
vinagre/view/Makefile
])
...
...
@@ -303,4 +324,5 @@ Configure summary:
GNOME Panel applet..........: ${enable_applet}
Telepathy support ..........: ${have_telepathy}
SSH plugin .................: ${enable_ssh}
RDP plugin .................: ${enable_rdp}
"
plugins/Makefile.am
View file @
593f8336
DIST_SUBDIRS
=
\
vnc
\
ssh
ssh
\
rdp
SUBDIRS
=
\
vnc
...
...
@@ -9,4 +10,8 @@ if SSH
SUBDIRS
+=
ssh
endif
if
RDP
SUBDIRS
+=
rdp
endif
-include
$(top_srcdir)/git.mk
plugins/ssh/vinagre-ssh-tab.c
View file @
593f8336
...
...
@@ -53,7 +53,17 @@ ssh_tab_get_tooltip (VinagreTab *tab)
static
GdkPixbuf
*
ssh_tab_get_screenshot
(
VinagreTab
*
tab
)
{
return
NULL
;
GdkPixbuf
*
pixbuf
;
GdkPixmap
*
pixmap
=
gtk_widget_get_snapshot
(
VINAGRE_SSH_TAB
(
tab
)
->
priv
->
vte
,
NULL
);
pixbuf
=
gdk_pixbuf_get_from_drawable
(
NULL
,
GDK_DRAWABLE
(
pixmap
),
gdk_colormap_get_system
(),
0
,
0
,
0
,
0
,
-
1
,
-
1
);
g_object_unref
(
pixmap
);
return
pixbuf
;
}
static
gboolean
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment