aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sample
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sample')
-rw-r--r--plugins/sample/Makefile.am5
-rw-r--r--plugins/sample/sample.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/plugins/sample/Makefile.am b/plugins/sample/Makefile.am
index 45b79e024..2c735e923 100644
--- a/plugins/sample/Makefile.am
+++ b/plugins/sample/Makefile.am
@@ -1,7 +1,10 @@
plugindir = $(libdir)/epiphany/plugins
INCLUDES = \
- -I/opt/gnome/include/epiphany-1.0 \
+ -I$(top_srcdir)/src \
+ -I$(top_srcdir)/embed \
+ -I$(top_srcdir)/lib \
+ -I$(top_srcdir)/src/bookmarks \
$(EPIPHANY_DEPENDENCY_CFLAGS) \
-DSHARE_DIR=\"$(pkgdatadir)\" \
-DG_DISABLE_DEPRECATED \
diff --git a/plugins/sample/sample.c b/plugins/sample/sample.c
index c36352e6f..fb5e9ed64 100644
--- a/plugins/sample/sample.c
+++ b/plugins/sample/sample.c
@@ -20,8 +20,8 @@
#include <gmodule.h>
#include <glib-object.h>
-#include "epiphany/ephy-shell.h"
-#include "epiphany/session.h"
+#include "ephy-shell.h"
+#include "session.h"
static void
bmk_added (EphyNode *node, EphyNode *child)
@@ -53,13 +53,15 @@ switch_page_cb (GtkWidget *widget)
g_print ("New active tab is %p\n", tab);
}
-static void
+static gboolean
window_focus_in_cb (GtkWidget *widget, GdkEventFocus *event)
{
EphyTab *tab;
tab = ephy_window_get_active_tab (EPHY_WINDOW (widget));
g_print ("New active tab is %p\n", tab);
+
+ return FALSE;
}
static void