Commit 593f8336 authored by Jonh Wendell's avatar Jonh Wendell
Browse files

Implement 'take screenshot' for SSH connections

parent 220b2058
......@@ -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}
"
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
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment