changeset 1820:0c700b9cd251

some xembed
author corvid <corvid@lavabit.com>
date Sat, 08 Jan 2011 04:23:26 +0000
parents 2f40041b27b0
children fd414a3567e2
files src/xembed.cc src/xembed.hh
diffstat 2 files changed, 11 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/src/xembed.cc	Sat Jan 08 03:56:36 2011 +0000
+++ b/src/xembed.cc	Sat Jan 08 04:23:26 2011 +0000
@@ -12,10 +12,9 @@
 #include <string.h>
 #include <ctype.h>
 
-#include <fltk/Window.h>
-#include <fltk/run.h>
-#include <fltk/events.h>
-#include <fltk/x.h>
+#include <FL/Fl_Window.H>
+#include <FL/Fl.H>
+#include <FL/x.H>
 
 #include "xembed.hh"
 
@@ -74,10 +73,10 @@
    if (e == FL_PUSH)
       sendXembedEvent(XEMBED_REQUEST_FOCUS);
 
-   return Window::handle(e);
+   return Fl_Window::handle(e);
 }
 
-static int event_handler(int e, fltk::Window *w) {
+static int event_handler(int e, Fl_Window *w) {
    Atom xembed_atom = XInternAtom (fltk::xdisplay, "_XEMBED", false);
 
    if (fltk::xevent.type == ClientMessage) {
@@ -110,7 +109,7 @@
 }
 
 void Xembed::createInternal(uint32_t parent) {
-   fltk::Window *window = this;
+   Fl_Window *window = this;
    Colormap colormap = fltk::xcolormap;
 
    XSetWindowAttributes attr;
@@ -154,12 +153,12 @@
 
 int
 Xembed::handle(int e) {
-   return Window::handle(e);
+   return Fl_Window::handle(e);
 }
 
 void
 Xembed::create() {
-   Window::create();
+   Fl_Window::create();
 }
 
 #endif
--- a/src/xembed.hh	Sat Jan 08 03:56:36 2011 +0000
+++ b/src/xembed.hh	Sat Jan 08 04:23:26 2011 +0000
@@ -1,11 +1,11 @@
 #ifndef __XEMBED_HH__
 #define __XEMBED_HH__
 
-#include <fltk/Window.h>
+#include <FL/Fl_Window.H>
 
 #include "d_size.h"
 
-class Xembed : public fltk::Window {
+class Xembed : public Fl_Window {
    private:
       uint32_t xid;
       void createInternal(uint32_t parent);
@@ -13,7 +13,7 @@
       void sendXembedEvent(uint32_t message);
 
    public:
-      Xembed(uint32_t xid, int _w, int _h) : fltk::Window(_w, _h) {
+      Xembed(uint32_t xid, int _w, int _h) : Fl_Window(_w, _h) {
          this->xid = xid;
       };
       void create();