[epiphany] title-box: move to lib/widgets



commit 9fea199cc6a86ca9feb5848a951dc2d3658f4316
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue Sep 20 21:50:39 2016 -0500

    title-box: move to lib/widgets
    
    EphyTitleBox is now much simpler and no longer requires access to a
    bunch of other files.
    
    Also, remove unneeded #includes that we no longer have access to.

 lib/widgets/Makefile.am               |    2 ++
 {src => lib/widgets}/ephy-title-box.c |    5 -----
 {src => lib/widgets}/ephy-title-box.h |    2 +-
 src/Makefile.am                       |    5 +----
 4 files changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/lib/widgets/Makefile.am b/lib/widgets/Makefile.am
index 378953e..5236046 100644
--- a/lib/widgets/Makefile.am
+++ b/lib/widgets/Makefile.am
@@ -76,6 +76,8 @@ libephywidgets_la_SOURCES = \
        ephy-node-view.h                        \
        ephy-security-popover.c                 \
        ephy-security-popover.h                 \
+       ephy-title-box.c                        \
+       ephy-title-box.h                        \
        ephy-tree-model-node.c                  \
        ephy-tree-model-node.h                  \
        ephy-tree-model-sort.c                  \
diff --git a/src/ephy-title-box.c b/lib/widgets/ephy-title-box.c
similarity index 98%
rename from src/ephy-title-box.c
rename to lib/widgets/ephy-title-box.c
index ea7f811..b475d10 100644
--- a/src/ephy-title-box.c
+++ b/lib/widgets/ephy-title-box.c
@@ -20,11 +20,6 @@
 #include "config.h"
 #include "ephy-title-box.h"
 
-#include "ephy-certificate-dialog.h"
-#include "ephy-debug.h"
-#include "ephy-private.h"
-#include "ephy-type-builtins.h"
-
 enum {
   LOCK_CLICKED,
   LAST_SIGNAL
diff --git a/src/ephy-title-box.h b/lib/widgets/ephy-title-box.h
similarity index 97%
rename from src/ephy-title-box.h
rename to lib/widgets/ephy-title-box.h
index 6163d95..a74e570 100644
--- a/src/ephy-title-box.h
+++ b/lib/widgets/ephy-title-box.h
@@ -21,7 +21,7 @@
 #include <gtk/gtk.h>
 #include <webkit2/webkit2.h>
 
-#include "ephy-window.h"
+#include "ephy-security-levels.h"
 
 G_BEGIN_DECLS
 
diff --git a/src/Makefile.am b/src/Makefile.am
index f465432..16edae7 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -12,8 +12,7 @@ TYPES_H_FILES = \
        ephy-link.h                             \
        ephy-session.h                          \
        ephy-shell.h                            \
-       ephy-window.h                           \
-       ephy-title-box.h
+       ephy-window.h
 
 libephymain_la_SOURCES = \
        clear-data-dialog.c                     \
@@ -45,8 +44,6 @@ libephymain_la_SOURCES = \
        ephy-session.h                          \
        ephy-shell.c                            \
        ephy-shell.h                            \
-       ephy-title-box.c                        \
-       ephy-title-box.h                        \
        ephy-window.c                           \
        ephy-window.h                           \
        languages.h                             \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]