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
=== modified file 'configure.ac'
--- configure.ac 2011-02-25 18:17:25 +0000
+++ configure.ac 2011-05-27 12:30:27 +0000
@@ -11,6 +11,8 @@
11AC_STDC_HEADERS11AC_STDC_HEADERS
12AC_PROG_LIBTOOL12AC_PROG_LIBTOOL
1313
14PKG_PROG_PKG_CONFIG
15
14AC_ARG_ENABLE([deprecations],16AC_ARG_ENABLE([deprecations],
15 [AS_HELP_STRING([--enable-deprecations],17 [AS_HELP_STRING([--enable-deprecations],
16 [allow deprecated API usage @<:@default=yes@:>@])],18 [allow deprecated API usage @<:@default=yes@:>@])],
@@ -25,11 +27,20 @@
2527
26with_localinstall="no"28with_localinstall="no"
2729
30PKG_CHECK_EXISTS(evolution-plugin-3.0,
31 EVOLUTION_PLUGIN=evolution-plugin-3.0
32 GTKHTML_EDITOR=gtkhtml-editor-4.0,
33 PKG_CHECK_EXISTS(evolution-plugin,
34 EVOLUTION_PLUGIN=evolution-plugin
35 GTKHTML_EDITOR=gtkhtml-editor-3.14,
36 AC_MSG_ERROR(You need evolution-plugin to compile evolution-indicator))
37 )
38
28AC_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)39AC_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)
29if test "x$with_localinstall" = "xyes"; then40if test "x$with_localinstall" = "xyes"; then
30 EVO_PLUGIN_DIR="${libdir}/evolution/2.26/plugins"41 EVO_PLUGIN_DIR="${libdir}/evolution/2.26/plugins"
31else42else
32 EVO_PLUGIN_DIR=`pkg-config --variable=plugindir evolution-plugin`43 EVO_PLUGIN_DIR=`pkg-config --variable=plugindir $EVOLUTION_PLUGIN `
33fi44fi
34AC_SUBST(EVO_PLUGIN_DIR)45AC_SUBST(EVO_PLUGIN_DIR)
3546
@@ -60,18 +71,18 @@
6071
61PKG_CHECK_MODULES(DEPS,72PKG_CHECK_MODULES(DEPS,
62 indicate-0.5 >= 0.4.9173 indicate-0.5 >= 0.4.91
63 evolution-plugin74 $EVOLUTION_PLUGIN
64 dbus-175 dbus-1
65 dbus-glib-176 dbus-glib-1
66 libnotify77 libnotify
67 libcanberra78 libcanberra
68 gtkhtml-editor-3.1479 $GTKHTML_EDITOR
69 unity80 unity
70 )81 )
71AC_SUBST(DEPS_CFLAGS)82AC_SUBST(DEPS_CFLAGS)
72AC_SUBST(DEPS_LIBS)83AC_SUBST(DEPS_LIBS)
7384
74EVO_I18N_DOMAIN=`pkg-config --modversion evolution-plugin | sed -e 's/\(.*\)\..\+$/\1/'`85EVO_I18N_DOMAIN=`pkg-config --modversion $EVOLUTION_PLUGIN | sed -e 's/\(.*\)\..\+$/\1/'`
75AC_DEFINE_UNQUOTED(EVO_I18N_DOMAIN,86AC_DEFINE_UNQUOTED(EVO_I18N_DOMAIN,
76 "evolution-$EVO_I18N_DOMAIN",87 "evolution-$EVO_I18N_DOMAIN",
77 [Define to the translation domain for Evolution])88 [Define to the translation domain for Evolution])
7889
=== modified file 'src/evolution-indicator.c'
--- src/evolution-indicator.c 2011-02-25 18:17:25 +0000
+++ src/evolution-indicator.c 2011-05-27 12:30:27 +0000
@@ -155,7 +155,11 @@
155 }155 }
156156
157 xwindow = None;157 xwindow = None;
158 res = _wnck_get_window (GDK_WINDOW_XWINDOW (root), 158#if GTK_CHECK_VERSION(2, 91, 0)
159 res = _wnck_get_window (GDK_WINDOW_XID (root),
160#else
161 res = _wnck_get_window (GDK_WINDOW_XWINDOW (root),
162#endif
159 gdk_x11_get_xatom_by_name ("_NET_ACTIVE_WINDOW"),163 gdk_x11_get_xatom_by_name ("_NET_ACTIVE_WINDOW"),
160 &xwindow);164 &xwindow);
161 if (res)165 if (res)
@@ -291,7 +295,7 @@
291295
292 if (notification == NULL)296 if (notification == NULL)
293 {297 {
294 notification = notify_notification_new (" ", " ", "mail-unread", NULL);298 notification = notify_notification_new (" ", " ", "mail-unread");
295 }299 }
296300
297 trans = g_dngettext (PACKAGE, 301 trans = g_dngettext (PACKAGE,
@@ -917,10 +921,17 @@
917921
918 label2 = gtk_label_new (" ");922 label2 = gtk_label_new (" ");
919923
924#if GTK_CHECK_VERSION(2, 91, 0)
925 combo = gtk_combo_box_text_new ();
926 gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo),
927 n_accounts > 1 ? _("any Inbox") : _("Inbox"));
928 gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), _("any Folder"));
929#else
920 combo = gtk_combo_box_new_text ();930 combo = gtk_combo_box_new_text ();
921 gtk_combo_box_append_text (GTK_COMBO_BOX (combo),931 gtk_combo_box_append_text (GTK_COMBO_BOX (combo),
922 n_accounts > 1 ? _("any Inbox") : _("Inbox"));932 n_accounts > 1 ? _("any Inbox") : _("Inbox"));
923 gtk_combo_box_append_text (GTK_COMBO_BOX (combo), _("any Folder"));933 gtk_combo_box_append_text (GTK_COMBO_BOX (combo), _("any Folder"));
934#endif
924 gtk_combo_box_set_active (GTK_COMBO_BOX (combo), 935 gtk_combo_box_set_active (GTK_COMBO_BOX (combo),
925 only_inbox ? 0 : 1);936 only_inbox ? 0 : 1);
926 g_signal_connect (combo, "changed", G_CALLBACK (on_combo_changed), NULL);937 g_signal_connect (combo, "changed", G_CALLBACK (on_combo_changed), NULL);

Subscribers

People subscribed via source and target branches