[gnome-control-center] region: Add stubs for language tab code



commit dbc6f5a6b98c456418345e0b53137ec8316dcdaf
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Jan 24 18:35:21 2011 +0000

    region: Add stubs for language tab code

 panels/region/Makefile.am               |    5 +++--
 panels/region/cc-region-panel.c         |    2 ++
 panels/region/gnome-region-panel-lang.c |    7 ++++++-
 panels/region/gnome-region-panel-lang.h |    2 ++
 4 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/panels/region/Makefile.am b/panels/region/Makefile.am
index 19811c8..234078c 100644
--- a/panels/region/Makefile.am
+++ b/panels/region/Makefile.am
@@ -7,7 +7,8 @@ INCLUDES = 						\
 	$(LIBGNOMEKBD_CFLAGS)				\
 	-DGNOMELOCALEDIR="\"$(datadir)/locale\""	\
 	-DGNOMECC_DATA_DIR="\"$(pkgdatadir)\""		\
-	-DGNOMECC_UI_DIR="\"$(uidir)\""
+	-DGNOMECC_UI_DIR="\"$(uidir)\""			\
+	-I$(srcdir)/../common/				\
 	$(NULL)
 
 ccpanelsdir = $(PANELS_DIR)
@@ -27,7 +28,7 @@ libregion_la_SOURCES =	\
 	gnome-region-panel-xkbpv.c \
 	gnome-region-panel-xkb.h
 
-libregion_la_LIBADD = $(PANEL_LIBS) $(LIBGNOMEKBD_LIBS) $(GNOMECC_CAPPLETS_LIBS)
+libregion_la_LIBADD = $(PANEL_LIBS) $(LIBGNOMEKBD_LIBS) $(GNOMECC_CAPPLETS_LIBS) $(builddir)/../common/liblanguage.la
 
 libregion_la_LDFLAGS = $(PANEL_LDFLAGS)
 
diff --git a/panels/region/cc-region-panel.c b/panels/region/cc-region-panel.c
index 83a706d..eb30eb4 100644
--- a/panels/region/cc-region-panel.c
+++ b/panels/region/cc-region-panel.c
@@ -23,6 +23,7 @@
 #include <gtk/gtk.h>
 
 #include "gnome-region-panel-xkb.h"
+#include "gnome-region-panel-lang.h"
 
 #define WID(s) GTK_WIDGET (gtk_builder_get_object (dialog, s))
 
@@ -129,6 +130,7 @@ cc_region_panel_init (CcRegionPanel * self)
 
 	setup_images (priv->builder);
 	setup_xkb_tabs (priv->builder);
+	setup_language (priv->builder);
 
 	prefs_widget = (GtkWidget *) gtk_builder_get_object (priv->builder,
 							     "region_notebook");
diff --git a/panels/region/gnome-region-panel-lang.c b/panels/region/gnome-region-panel-lang.c
index cd09c9a..a1a603a 100644
--- a/panels/region/gnome-region-panel-lang.c
+++ b/panels/region/gnome-region-panel-lang.c
@@ -27,5 +27,10 @@
 #include <glib/gi18n.h>
 
 #include "gnome-region-panel-lang.h"
+#include "cc-common-language.h"
 
-
+void
+setup_language (GtkBuilder *builder)
+{
+	g_message ("TODO");
+}
diff --git a/panels/region/gnome-region-panel-lang.h b/panels/region/gnome-region-panel-lang.h
index 7afe27e..3522ac0 100644
--- a/panels/region/gnome-region-panel-lang.h
+++ b/panels/region/gnome-region-panel-lang.h
@@ -26,5 +26,7 @@
 
 G_BEGIN_DECLS
 
+void setup_language (GtkBuilder *builder);
+
 G_END_DECLS
 #endif /* __GNOME_KEYBOARD_PROPERTY_LANG_H */



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