Add css file

This commit is contained in:
Alexander Larsson 2011-05-09 11:57:28 +02:00
parent 1a67dd1bed
commit 3b4da45924
4 changed files with 11 additions and 2 deletions

View file

@ -1,5 +1,5 @@
NULL=
SUBDIRS = src vapi po
SUBDIRS = src vapi data po
EXTRA_DIST = \
autogen.sh \
intltool-extract.in \

View file

@ -10,6 +10,7 @@ AM_MAINTAINER_MODE
AC_CONFIG_FILES([Makefile
vapi/Makefile
src/Makefile
data/Makefile
po/Makefile.in])
LT_INIT

0
data/gnome-contacts.css Normal file
View file

View file

@ -20,7 +20,7 @@
using Gtk;
using Contacts;
public static int
public static int
main (string[] args) {
Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.LOCALEDIR);
Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8");
@ -28,6 +28,14 @@ main (string[] args) {
Gtk.init (ref args);
try {
var provider = new CssProvider ();
provider.load_from_path (Config.PKGDATADIR + "/" + "gnome-contacts.css");
StyleContext.add_provider_for_screen (Gdk.Screen.get_default (), provider,
STYLE_PROVIDER_PRIORITY_APPLICATION);
} catch {
}
var app = new App ();
app.show ();