diff --git a/Makefile.am b/Makefile.am index 9b58dba..df1687e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,5 @@ NULL= -SUBDIRS = src vapi po +SUBDIRS = src vapi data po EXTRA_DIST = \ autogen.sh \ intltool-extract.in \ diff --git a/configure.ac b/configure.ac index c10ea4d..0adbc61 100644 --- a/configure.ac +++ b/configure.ac @@ -10,6 +10,7 @@ AM_MAINTAINER_MODE AC_CONFIG_FILES([Makefile vapi/Makefile src/Makefile + data/Makefile po/Makefile.in]) LT_INIT diff --git a/data/gnome-contacts.css b/data/gnome-contacts.css new file mode 100644 index 0000000..e69de29 diff --git a/src/main.vala b/src/main.vala index 33ada80..7df45d1 100644 --- a/src/main.vala +++ b/src/main.vala @@ -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 ();