Add css file
This commit is contained in:
parent
1a67dd1bed
commit
3b4da45924
4 changed files with 11 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
NULL=
|
NULL=
|
||||||
SUBDIRS = src vapi po
|
SUBDIRS = src vapi data po
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
autogen.sh \
|
autogen.sh \
|
||||||
intltool-extract.in \
|
intltool-extract.in \
|
||||||
|
|
|
@ -10,6 +10,7 @@ AM_MAINTAINER_MODE
|
||||||
AC_CONFIG_FILES([Makefile
|
AC_CONFIG_FILES([Makefile
|
||||||
vapi/Makefile
|
vapi/Makefile
|
||||||
src/Makefile
|
src/Makefile
|
||||||
|
data/Makefile
|
||||||
po/Makefile.in])
|
po/Makefile.in])
|
||||||
|
|
||||||
LT_INIT
|
LT_INIT
|
||||||
|
|
0
data/gnome-contacts.css
Normal file
0
data/gnome-contacts.css
Normal file
|
@ -20,7 +20,7 @@
|
||||||
using Gtk;
|
using Gtk;
|
||||||
using Contacts;
|
using Contacts;
|
||||||
|
|
||||||
public static int
|
public static int
|
||||||
main (string[] args) {
|
main (string[] args) {
|
||||||
Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.LOCALEDIR);
|
Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.LOCALEDIR);
|
||||||
Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8");
|
Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8");
|
||||||
|
@ -28,6 +28,14 @@ main (string[] args) {
|
||||||
|
|
||||||
Gtk.init (ref 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 ();
|
var app = new App ();
|
||||||
app.show ();
|
app.show ();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue