aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@gnome.org>2010-07-16 01:09:23 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-07-26 09:30:00 +0800
commitd46c4b4e5bcaefd116b0ee0e49af951c31019990 (patch)
tree25d9fa8eb322437c3b115d1b5414944e7551da45 /shell
parentb9564c4d01c08c976e01256b308e3f2891c6e164 (diff)
downloadgsoc2013-evolution-d46c4b4e5bcaefd116b0ee0e49af951c31019990.tar.gz
gsoc2013-evolution-d46c4b4e5bcaefd116b0ee0e49af951c31019990.tar.zst
gsoc2013-evolution-d46c4b4e5bcaefd116b0ee0e49af951c31019990.zip
Add optional clutter support.
Diffstat (limited to 'shell')
-rw-r--r--shell/Makefile.am5
-rw-r--r--shell/main.c15
2 files changed, 20 insertions, 0 deletions
diff --git a/shell/Makefile.am b/shell/Makefile.am
index 3cae585252..7fd03afaa3 100644
--- a/shell/Makefile.am
+++ b/shell/Makefile.am
@@ -59,6 +59,7 @@ libeshell_la_CPPFLAGS = \
-DG_LOG_DOMAIN=\"evolution-shell\" \
$(EVOLUTION_DATA_SERVER_CFLAGS) \
$(GNOME_PLATFORM_CFLAGS) \
+ $(CLUTTER_CFLAGS) \
$(TZDIALOG_CFLAGS) \
$(SHELL_CFLAGS)
@@ -95,6 +96,7 @@ libeshell_la_LIBADD = \
$(top_builddir)/widgets/menus/libmenus.la \
$(EVOLUTION_DATA_SERVER_LIBS) \
$(GNOME_PLATFORM_LIBS) \
+ $(CLUTTER_LIBS) \
$(SHELL_LIBS)
# Evolution executable
@@ -122,11 +124,13 @@ evolution_CPPFLAGS = \
-DEVOLUTION_TOOLSDIR=\""$(privlibexecdir)"\" \
-DEVOLUTION_UIDIR=\""$(uidir)"\" \
-DPREFIX=\""$(prefix)"\" \
+ -DEVOLUTION_MX_THEMEDIR=\"$(privdatadir)/theme\" \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DDATADIR=\""$(datadir)"\" \
-DLIBDIR=\""$(datadir)"\" \
$(GNOME_PLATFORM_CFLAGS) \
$(TZDIALOG_CFLAGS) \
+ $(CLUTTER_CFLAGS) \
$(SHELL_CFLAGS)
evolution_SOURCES = \
@@ -142,6 +146,7 @@ evolution_LDADD = \
$(TZDIALOG_LIBS) \
$(SHELL_LIBS) \
$(GNOME_PLATFORM_LIBS) \
+ $(CLUTTER_LIBS) \
$(EVOLUTIONICON)
if OS_WIN32
diff --git a/shell/main.c b/shell/main.c
index 3a885f59f2..c9a8709c83 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -26,6 +26,11 @@
#include <glib/gi18n.h>
#include <glib/gstdio.h>
+#if HAVE_CLUTTER
+#include <clutter-gtk/clutter-gtk.h>
+#include <mx/mx.h>
+#endif
+
#ifdef G_OS_WIN32
#define WIN32_LEAN_AND_MEAN
#ifdef DATADIR
@@ -464,10 +469,20 @@ main (gint argc, gchar **argv)
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
+#if HAVE_CLUTTER
+ gtk_clutter_init_with_args (
+ &argc, &argv,
+ _("- The Evolution PIM and Email Client"),
+ entries, (gchar *) GETTEXT_PACKAGE, &error);
+ mx_style_load_from_file (mx_style_get_default (),
+ EVOLUTION_MX_THEMEDIR "/default.css", NULL);
+
+#else
gtk_init_with_args (
&argc, &argv,
_("- The Evolution PIM and Email Client"),
entries, (gchar *) GETTEXT_PACKAGE, &error);
+#endif
if (error != NULL) {
g_printerr ("%s\n", error->message);
g_error_free (error);
etions'>-1/+1 * Fix typos.olgeni2004-02-171-2/+2 * Fix a couple of typos (from ispell).olgeni2004-02-171-2/+2 * this port installs shlibijliao2004-02-171-0/+1 * add gai 0.5.2ijliao2004-02-174-0/+67 * Mark BROKEN until the Xalloca.h problem can be fixed.marcus2004-02-171-0/+2 * BROKEN on 5.x: does not compilekris2004-02-171-1/+7 * - Change dangling local hyperlink to point to the actual file on WWWpav2004-02-142-0/+8 * This port needs ports/archivers/rpm (brought in by the BUILD_DEPENDS+trevor2004-02-123-6/+6 * The rpm executable is needed in do-install, so having it as I didtrevor2004-02-123-3/+3 * Switch this port to use www/firefox instead of mozilla-firebird.marcus2004-02-111-1/+1 * Fix build on AMD64arved2004-02-101-0/+1 * Fix build on AMD64arved2004-02-101-1/+1 * installs docsijliao2004-02-101-0/+9 * dont strip archive fileijliao2004-02-101-3/+2 * Remove lang/php4/bsd.php.mk and switch every ports depending on PHP toale2004-02-092-12/+6 * installs include filesijliao2004-02-091-2/+8 * BROKEN with perl 5.8: does not compilekris2004-02-092-0/+8 * BROKEN on 5.x: does not compilekris2004-02-091-1/+7 * Reverse last two commits. Remove BUILD_DEPENDS line which wastrevor2004-02-093-15/+3 * Add a missing dependency on xproto.marcus2004-02-081-4/+3 * USE_SIZEifylioux2004-02-082-0/+2 * BROKEN on 5.x: does not compilekris2004-02-081-1/+7 * BROKEN: Does not compilekris2004-02-081-0/+2 * Create a new port for xclass. This is not xclasses.patrick2004-02-086-0/+480 * - Set correct LATEST_LINKclement2004-02-082-0/+4 * BROKEN: Build failskris2004-02-073-0/+6 * Fix the LATEST_LINK so as not to conflict with gtkglarea.marcus2004-02-071-0/+1 * Use PLIST_FILES (bento-tested, marcus-reviewed).trevor2004-02-062-1/+1 * Add NO_LATEST_LINKarved2004-02-061-1/+2 * upgrade to 0.0.4.2ijliao2004-02-063-30/+4 * Use PLIST_FILES.trevor2004-02-062-1/+1 * - Provide a different fix for gnome.fjoe2004-02-044-20/+18 * Set {WANT,USE}_GNOME correctly to make these ports compatible with the newmarcus2004-02-042-0/+4 * Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-04170-57/+170 * Add USE_GETTEXT and bump PORTREVISION.marcus2004-02-042-5/+5 * Update to 2.4.2.marcus2004-02-032-2/+2 * add wxmozilla 0.5.3ijliao2004-02-027-0/+91 * - update MASTER_SITESdinoex2004-01-312-4/+2 * SIZE-ifyobraun2004-01-316-2/+6 * Don't call a non-existent pkg-install.marcus2004-01-312-10/+0 * Don't remove a directory owned by gtk12kris2004-01-301-1/+0 * Add CONFLICTS for py-gnome and py-gnome2 on each other.marcus2004-01-303-16/+4 * Add CONFLICTS from py-gtk2 and py-gtk to each other.marcus2004-01-303-16/+4 * - Fix dependencies on py-qtpav2004-01-301-1/+1 * Fix INDEX Build.arved2004-01-301-4/+3 * depend on qscintillaarved2004-01-302-7/+38 * SIZEify.trevor2004-01-3061-0/+63 * Fix Location of qmakespec.arved2004-01-292-2/+2 * PREFIX-safeness fixes.lofi2004-01-282-2/+4 * Add size data.trevor2004-01-281-0/+1 * New port: X Athena Widgets from freedesktop.organholt2004-01-255-0/+117 * New port: X Miscellaneous Utilities library from freedesktop.organholt2004-01-255-0/+72 * New port: X Toolkit library from freedesktop.organholt2004-01-255-0/+58 * Complete repocopy of x11-toolkits/xrender to x11/libXrender, and update toanholt2004-01-256-53/+0 * Complete repocopy of x11-toolkits/render to x11/renderext, and use the newanholt2004-01-256-50/+0 * Add a missing build dependency on intltool.marcus2004-01-251-1/+1 * - Update to 1.2.8pav2004-01-243-4/+23 * Let ports use the USE_SDL macro.edwin2004-01-244-14/+5 * No member of the kde@ team has touched anything related to Qt2 in ages, sowill2004-01-241-1/+1 * Now gettext 0.12.1 is gettext-old.trevor2004-01-242-2/+2 * Use the CPIO macro defined in bsd.port.mk.trevor2004-01-225-5/+5 * Remove gail and at-spi after repocopies to accessibility.marcus2004-01-2218-264/+0 * - Update to 3.10pav2004-01-223-2/+5 * Location of qmake code changed.arved2004-01-201-2/+2 * Add a missing BUILD_DEPENDS on intltool.marcus2004-01-191-0/+2 * Update to 2.0.0bland2004-01-188-16/+17 * Use lang/ghc5obraun2004-01-162-4/+4 * Use lang/ghc5obraun2004-01-161-2/+2 * Update to 1.3.11.marcus2004-01-132-2/+2 * - Update to version 1.58krion2004-01-123-18/+20 * Update to 0.6, and apply some plist-resorting goodness.adamw2004-01-123-33/+29 * Update xfce to 4.0.3oliver2004-01-114-10/+12 * Update to 0.27arved2004-01-102-2/+2 * Add qmake as runtime dependency.lofi2004-01-102-0/+2 * Point WWW to new location.adamw2004-01-081-1/+1 * Remove guile-gobject.adamw2004-01-081-1/+0 * Remove guile-gobject. It hasn't worked, and wasn't showing signs ofadamw2004-01-087-137/+0 * Host distfile on MASTER_SITE_LOCAL until savannah is back.adamw2004-01-081-2/+4 * Update to 2.4.3.marcus2004-01-082-2/+2 * add p5-Gnome2 0.90ijliao2004-01-076-0/+162 * Fix build on AMD64arved2004-01-061-1/+1 * - Update to version 0.7.0krion2004-01-0622-263/+4 * Add a WITHOUT_GTK1 knobarved2004-01-052-5/+11 * add py-wmgeneral 0.1ijliao2004-01-059-0/+89 * Add a reciprocal CONFLICTS entry for gtk-smooth-engine.marcus2004-01-041-0/+2 * Re-add gtk-smooth-engine, and fix it up.marcus2004-01-047-0/+128 * upgrade to 1.021ijliao2004-01-023-17/+347 * add p5-Gnome2-VFS 0.10ijliao2004-01-025-0/+89 * Do not use the %-[.] format to strftime since this is a GNUism.marcus2003-12-283-0/+58 * - Update to version 3.9krion2003-12-274-70/+248 * Bug fix: add WmDefault.tcl in the list of scripts required by tixSamLib.jmz2003-12-252-4/+12 * Update lang/ruby18 to the 1.8.1 final release. Merry Christmas!knu2003-12-251-0/+1 * Revert previous commit. I pulled the trigger too soon. Setuid root ismarcus2003-12-241-2/+2 * Install gnome-pty-helper setgid to tty instead of setuid to root.marcus2003-12-242-3/+3 * Update lang/ruby18 to 1.8.1.p4.knu2003-12-221-0/+6 * - Update to 1.2.7pav2003-12-222-2/+2 * - Take this over as x11@ maintainership.anholt2003-12-224-19/+27 * Set forgotten CONFIGURE_TARGET to quiet the configure stage.anholt2003-12-221-0/+1 * - Take this over as x11@ maintainership.anholt2003-12-224-22/+29 * - Use canonical form (ports@FreeBSD.org) in MAINTAINER linesergei2003-12-218-8/+8 * - Update to version 0.3.2krion2003-12-173-13/+2 * Fix some stylebugs found by portlint.lofi2003-12-162-18/+18 * Update to 0.14.marcus2003-12-1612-36/+68 * - Fix MASTER_SITESkrion2003-12-163-4/+6 * Fix formatting.fjoe2003-12-162-2/+2 * USE_MESA -> USE_GL (maintainer timeout).fjoe2003-12-161-1/+1 * USE_MESA -> USE_GL.fjoe2003-12-16