Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Update src/pal/gtk/clipboard-gtk.cpp
Browse files Browse the repository at this point in the history
In this branch Moonlight is migrated from Gtk-2 to Gtk-3.
All changes are done under a flag "MOONLIGHT_GTK3".
So to enable GTK3 with moonlight use -DMOONLIGHT_GTK3 flag during configuration.
Also GTK3 libraries and GTK3 include files Path is to be given during configuration.
Also GTK3 dependents like gdk-pixbuf atk pango glib should be included in include paths with appropriate versions.
  • Loading branch information
ya1gaurav committed Nov 20, 2012
1 parent c14ea05 commit f530ae5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pal/gtk/clipboard-gtk.cpp
Expand Up @@ -13,7 +13,12 @@ using namespace Moonlight;
MoonClipboardGtk::MoonClipboardGtk (MoonWindowGtk *win, MoonClipboardType clipboardType)
{
GdkWindow *window = GDK_WINDOW (win->GetPlatformWindow ());

#ifdef MOONLIGHT_GTK3
GdkDisplay *display = gdk_window_get_display (window);
#else
GdkDisplay *display = gdk_drawable_get_display (GDK_DRAWABLE (window));
#endif

GdkAtom gdk_type;

Expand Down

0 comments on commit f530ae5

Please sign in to comment.