Merge lp:~rodrigo-moya/evolution-indicator/port-to-3-0 into lp:evolution-indicator

Proposed by Rodrigo Moya
Status: Merged
Merged at revision: 78
Proposed branch: lp:~rodrigo-moya/evolution-indicator/port-to-3-0
Merge into: lp:evolution-indicator
Diff against target: 100 lines (+28/-6)
2 files modified
configure.ac (+15/-4)
src/evolution-indicator.c (+13/-2)
To merge this branch: bzr merge lp:~rodrigo-moya/evolution-indicator/port-to-3-0
Reviewer Review Type Date Requested Status
Didier Roche-Tolomelli Approve
Review via email: mp+62653@code.launchpad.net

Description of the change

Make it build with evolution 3.0 stack

To post a comment you must log in.
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

The changes seems good, but evolution is now using libgtkhtml-editor-4.0.pc and not 3.14 anymore. Can you make the change so that we can drop 3.14 from the CD?

review: Needs Information
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

just to be a little bit more clear,

22 + GTKHTML_EDITOR=gtkhtml-editor-3.14,
is in PKG_CHECK_EXISTS(evolution-plugin, which seems to be the 2.0 version, but this PKG_CHECK_EXISTS is itself in 17 +PKG_CHECK_EXISTS(evolution-plugin-3.0,
hence the fact I'm puzzled :)

79. By Rodrigo Moya

Fix C&P code

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

after discussion on IRC, approved then :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'configure.ac'
2--- configure.ac 2011-02-25 18:17:25 +0000
3+++ configure.ac 2011-05-27 12:30:27 +0000
4@@ -11,6 +11,8 @@
5 AC_STDC_HEADERS
6 AC_PROG_LIBTOOL
7
8+PKG_PROG_PKG_CONFIG
9+
10 AC_ARG_ENABLE([deprecations],
11 [AS_HELP_STRING([--enable-deprecations],
12 [allow deprecated API usage @<:@default=yes@:>@])],
13@@ -25,11 +27,20 @@
14
15 with_localinstall="no"
16
17+PKG_CHECK_EXISTS(evolution-plugin-3.0,
18+ EVOLUTION_PLUGIN=evolution-plugin-3.0
19+ GTKHTML_EDITOR=gtkhtml-editor-4.0,
20+ PKG_CHECK_EXISTS(evolution-plugin,
21+ EVOLUTION_PLUGIN=evolution-plugin
22+ GTKHTML_EDITOR=gtkhtml-editor-3.14,
23+ AC_MSG_ERROR(You need evolution-plugin to compile evolution-indicator))
24+ )
25+
26 AC_ARG_ENABLE(localinstall, AS_HELP_STRING([--enable-localinstall], [install in the local build directory instead of the system one (for distcheck)]), with_localinstall=$enableval, with_localinstall=no)
27 if test "x$with_localinstall" = "xyes"; then
28 EVO_PLUGIN_DIR="${libdir}/evolution/2.26/plugins"
29 else
30- EVO_PLUGIN_DIR=`pkg-config --variable=plugindir evolution-plugin`
31+ EVO_PLUGIN_DIR=`pkg-config --variable=plugindir $EVOLUTION_PLUGIN `
32 fi
33 AC_SUBST(EVO_PLUGIN_DIR)
34
35@@ -60,18 +71,18 @@
36
37 PKG_CHECK_MODULES(DEPS,
38 indicate-0.5 >= 0.4.91
39- evolution-plugin
40+ $EVOLUTION_PLUGIN
41 dbus-1
42 dbus-glib-1
43 libnotify
44 libcanberra
45- gtkhtml-editor-3.14
46+ $GTKHTML_EDITOR
47 unity
48 )
49 AC_SUBST(DEPS_CFLAGS)
50 AC_SUBST(DEPS_LIBS)
51
52-EVO_I18N_DOMAIN=`pkg-config --modversion evolution-plugin | sed -e 's/\(.*\)\..\+$/\1/'`
53+EVO_I18N_DOMAIN=`pkg-config --modversion $EVOLUTION_PLUGIN | sed -e 's/\(.*\)\..\+$/\1/'`
54 AC_DEFINE_UNQUOTED(EVO_I18N_DOMAIN,
55 "evolution-$EVO_I18N_DOMAIN",
56 [Define to the translation domain for Evolution])
57
58=== modified file 'src/evolution-indicator.c'
59--- src/evolution-indicator.c 2011-02-25 18:17:25 +0000
60+++ src/evolution-indicator.c 2011-05-27 12:30:27 +0000
61@@ -155,7 +155,11 @@
62 }
63
64 xwindow = None;
65- res = _wnck_get_window (GDK_WINDOW_XWINDOW (root),
66+#if GTK_CHECK_VERSION(2, 91, 0)
67+ res = _wnck_get_window (GDK_WINDOW_XID (root),
68+#else
69+ res = _wnck_get_window (GDK_WINDOW_XWINDOW (root),
70+#endif
71 gdk_x11_get_xatom_by_name ("_NET_ACTIVE_WINDOW"),
72 &xwindow);
73 if (res)
74@@ -291,7 +295,7 @@
75
76 if (notification == NULL)
77 {
78- notification = notify_notification_new (" ", " ", "mail-unread", NULL);
79+ notification = notify_notification_new (" ", " ", "mail-unread");
80 }
81
82 trans = g_dngettext (PACKAGE,
83@@ -917,10 +921,17 @@
84
85 label2 = gtk_label_new (" ");
86
87+#if GTK_CHECK_VERSION(2, 91, 0)
88+ combo = gtk_combo_box_text_new ();
89+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo),
90+ n_accounts > 1 ? _("any Inbox") : _("Inbox"));
91+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), _("any Folder"));
92+#else
93 combo = gtk_combo_box_new_text ();
94 gtk_combo_box_append_text (GTK_COMBO_BOX (combo),
95 n_accounts > 1 ? _("any Inbox") : _("Inbox"));
96 gtk_combo_box_append_text (GTK_COMBO_BOX (combo), _("any Folder"));
97+#endif
98 gtk_combo_box_set_active (GTK_COMBO_BOX (combo),
99 only_inbox ? 0 : 1);
100 g_signal_connect (combo, "changed", G_CALLBACK (on_combo_changed), NULL);

Subscribers

People subscribed via source and target branches