From 27c45abda3294239c7881a2ad878d9d1443f099a Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 7 Nov 2011 17:51:54 +0000 Subject: [PATCH] shell: Merge libgnome-control-center into main binary This fixes problems with the CcEditableEntry type not being registered and causing the printers and user-accounts panels not to work. As we do not need to work on Windows, we do not need to split out the library. --- Makefile.am | 4 +-- configure.ac | 1 - libgnome-control-center/Makefile.am | 31 ------------------- shell/Makefile.am | 8 +++-- .../cc-editable-entry.c | 0 .../cc-editable-entry.h | 0 {libgnome-control-center => shell}/cc-panel.c | 0 {libgnome-control-center => shell}/cc-panel.h | 0 {libgnome-control-center => shell}/cc-shell.c | 0 {libgnome-control-center => shell}/cc-shell.h | 0 shell/gnome-control-center.h | 2 +- 11 files changed, 9 insertions(+), 37 deletions(-) delete mode 100644 libgnome-control-center/Makefile.am rename {libgnome-control-center => shell}/cc-editable-entry.c (100%) rename {libgnome-control-center => shell}/cc-editable-entry.h (100%) rename {libgnome-control-center => shell}/cc-panel.c (100%) rename {libgnome-control-center => shell}/cc-panel.h (100%) rename {libgnome-control-center => shell}/cc-shell.c (100%) rename {libgnome-control-center => shell}/cc-shell.h (100%) diff --git a/Makefile.am b/Makefile.am index 56049e7d1..4931964de 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,7 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} -SUBDIRS = po libgnome-control-center shell panels help -DIST_SUBDIRS = po help shell panels libgnome-control-center +SUBDIRS = po shell panels help +DIST_SUBDIRS = po help shell panels DISTCLEANFILES = \ gnome-doc-utils.make diff --git a/configure.ac b/configure.ac index a0247d2c0..130f9005b 100644 --- a/configure.ac +++ b/configure.ac @@ -307,7 +307,6 @@ fi AC_CONFIG_FILES([ Makefile help/Makefile -libgnome-control-center/Makefile panels/Makefile panels/common/Makefile panels/background/Makefile diff --git a/libgnome-control-center/Makefile.am b/libgnome-control-center/Makefile.am deleted file mode 100644 index f84fc5e95..000000000 --- a/libgnome-control-center/Makefile.am +++ /dev/null @@ -1,31 +0,0 @@ -NULL = - -uidir = $(pkgdatadir)/ui - -AM_CPPFLAGS = \ - $(LIBGNOME_CONTROL_CENTER_CFLAGS) \ - -DGNOMELOCALEDIR="\"$(datadir)/locale\""\ - -DUIDIR="\"$(uidir)\"" \ - -DMENUDIR="\"$(menudir)\"" \ - $(NULL) - -noinst_LTLIBRARIES = libgnome-control-center.la - -libgnome_control_center_la_SOURCES = \ - cc-panel.c \ - cc-panel.h \ - cc-shell.c \ - cc-shell.h \ - cc-editable-entry.c \ - cc-editable-entry.h \ - $(NULL) - -libgnome_control_center_la_LDFLAGS = \ - -no-undefined \ - $(NULL) - -libgnome_control_center_la_LIBADD = \ - $(LIBGNOME_CONTROL_CENTER_LIBS) \ - $(NULL) - --include $(top_srcdir)/git.mk diff --git a/shell/Makefile.am b/shell/Makefile.am index a3a11af4b..5912e0c60 100644 --- a/shell/Makefile.am +++ b/shell/Makefile.am @@ -1,6 +1,5 @@ INCLUDES = \ -I$(top_srcdir) \ - -I$(top_srcdir)/libgnome-control-center \ $(SHELL_CFLAGS) bin_PROGRAMS = gnome-control-center @@ -28,10 +27,15 @@ gnome_control_center_SOURCES = \ cc-shell-item-view.h \ cc-shell-model.c \ cc-shell-model.h \ + cc-editable-entry.c \ + cc-editable-entry.h \ + cc-panel.c \ + cc-panel.h \ + cc-shell.c \ + cc-shell.h \ $(MARSHAL_FILES) gnome_control_center_LDADD = \ - $(top_builddir)/libgnome-control-center/libgnome-control-center.la \ $(SHELL_LIBS) gnome_control_center_LDFLAGS = -export-dynamic diff --git a/libgnome-control-center/cc-editable-entry.c b/shell/cc-editable-entry.c similarity index 100% rename from libgnome-control-center/cc-editable-entry.c rename to shell/cc-editable-entry.c diff --git a/libgnome-control-center/cc-editable-entry.h b/shell/cc-editable-entry.h similarity index 100% rename from libgnome-control-center/cc-editable-entry.h rename to shell/cc-editable-entry.h diff --git a/libgnome-control-center/cc-panel.c b/shell/cc-panel.c similarity index 100% rename from libgnome-control-center/cc-panel.c rename to shell/cc-panel.c diff --git a/libgnome-control-center/cc-panel.h b/shell/cc-panel.h similarity index 100% rename from libgnome-control-center/cc-panel.h rename to shell/cc-panel.h diff --git a/libgnome-control-center/cc-shell.c b/shell/cc-shell.c similarity index 100% rename from libgnome-control-center/cc-shell.c rename to shell/cc-shell.c diff --git a/libgnome-control-center/cc-shell.h b/shell/cc-shell.h similarity index 100% rename from libgnome-control-center/cc-shell.h rename to shell/cc-shell.h diff --git a/shell/gnome-control-center.h b/shell/gnome-control-center.h index 50fe5afce..30b3fb7e8 100644 --- a/shell/gnome-control-center.h +++ b/shell/gnome-control-center.h @@ -22,7 +22,7 @@ #define _GNOME_CONTROL_CENTER_H #include -#include +#include "cc-shell.h" G_BEGIN_DECLS