Merge lp:~indicator-applet-developers/evolution-indicator/ubuntu into lp:~ubuntu-desktop/evolution-indicator/ubuntu

Proposed by Ted Gould
Status: Merged
Merged at revision: not available
Proposed branch: lp:~indicator-applet-developers/evolution-indicator/ubuntu
Merge into: lp:~ubuntu-desktop/evolution-indicator/ubuntu
Diff against target: 170 lines (+46/-51)
4 files modified
configure.ac (+2/-2)
debian/changelog (+9/-0)
debian/control (+1/-1)
src/evolution-indicator.c (+34/-48)
To merge this branch: bzr merge lp:~indicator-applet-developers/evolution-indicator/ubuntu
Reviewer Review Type Date Requested Status
Ken VanDine Approve
Review via email: mp+20972@code.launchpad.net

Description of the change

0.2.7

To post a comment you must log in.
Revision history for this message
Ken VanDine (ken-vandine) :
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 2010-01-21 21:26:00 +0000
+++ configure.ac 2010-03-09 15:30:37 +0000
@@ -1,5 +1,5 @@
1AC_PREREQ(2.53)1AC_PREREQ(2.53)
2AC_INIT(evolution-indicator, 0.2.6, [])2AC_INIT(evolution-indicator, 0.2.7, [])
3AM_INIT_AUTOMAKE()3AM_INIT_AUTOMAKE()
4m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])4m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
5AC_CONFIG_SRCDIR(src/evolution-indicator.c)5AC_CONFIG_SRCDIR(src/evolution-indicator.c)
@@ -51,7 +51,7 @@
51AC_SUBST(GCC_FLAGS)51AC_SUBST(GCC_FLAGS)
5252
53PKG_CHECK_MODULES(DEPS,53PKG_CHECK_MODULES(DEPS,
54 indicate >= 0.2.054 indicate >= 0.3.0
55 evolution-plugin55 evolution-plugin
56 dbus-156 dbus-1
57 dbus-glib-157 dbus-glib-1
5858
=== modified file 'debian/changelog'
--- debian/changelog 2010-01-25 17:48:12 +0000
+++ debian/changelog 2010-03-09 15:30:37 +0000
@@ -1,3 +1,12 @@
1evolution-indicator (0.2.7-0ubuntu1~ppa1) lucid; urgency=low
2
3 * Upstream Release 0.2.7
4 * Update to newer libindicate signaling
5 * Add in dynamic command items.
6 * debian/control: No depending on libindicate 0.3.0 or higher.
7
8 -- Ted Gould <ted@ubuntu.com> Thu, 04 Mar 2010 11:28:52 -0600
9
1evolution-indicator (0.2.6-0ubuntu3) lucid; urgency=low10evolution-indicator (0.2.6-0ubuntu3) lucid; urgency=low
211
3 * Rebuild to get the new gtkhtml shlib12 * Rebuild to get the new gtkhtml shlib
413
=== modified file 'debian/control'
--- debian/control 2009-09-10 15:26:57 +0000
+++ debian/control 2010-03-09 15:30:37 +0000
@@ -14,7 +14,7 @@
14 libdbus-glib-1-dev (>= 0.7),14 libdbus-glib-1-dev (>= 0.7),
15 evolution-dev,15 evolution-dev,
16 evolution-data-server-dev,16 evolution-data-server-dev,
17 libindicate-dev (>= 0.2.0),17 libindicate-dev (>= 0.3.0),
18 libnotify-dev,18 libnotify-dev,
19 libcanberra-dev,19 libcanberra-dev,
20 libgtkhtml-editor-dev,20 libgtkhtml-editor-dev,
2121
=== modified file 'src/evolution-indicator.c'
--- src/evolution-indicator.c 2009-12-17 14:59:03 +0000
+++ src/evolution-indicator.c 2010-03-09 15:30:37 +0000
@@ -100,7 +100,7 @@
100int e_plugin_lib_enable (EPluginLib *ep, int enable);100int e_plugin_lib_enable (EPluginLib *ep, int enable);
101GtkWidget * e_plugin_lib_get_configure_widget (EPlugin *epl);101GtkWidget * e_plugin_lib_get_configure_widget (EPlugin *epl);
102102
103static void show_evolution (gpointer arg0, gpointer arg1);103static void show_evolution (gpointer arg0, guint timestamp, gpointer arg1);
104104
105static void show_evolution_in_indicator_applet (void);105static void show_evolution_in_indicator_applet (void);
106static void hide_evolution_in_indicator_applet (void);106static void hide_evolution_in_indicator_applet (void);
@@ -671,6 +671,19 @@
671 update_accounts ();671 update_accounts ();
672}672}
673673
674#define EVO_CONTACTS_CMD "evolution -c contacts"
675#define EVO_COMPOSE_CMD "evolution mailto:"
676
677static void
678command_item_activate (DbusmenuMenuitem * mi, guint timestamp, gpointer user_data)
679{
680 gchar * command = (gchar *)user_data;
681 if (!g_spawn_command_line_async(command, NULL)) {
682 g_warning("Unable to execute command '%s'", command);
683 }
684 return;
685}
686
674int687int
675e_plugin_lib_enable (EPluginLib *ep, int enable)688e_plugin_lib_enable (EPluginLib *ep, int enable)
676{689{
@@ -710,6 +723,22 @@
710 g_signal_connect (server, "server-display",723 g_signal_connect (server, "server-display",
711 G_CALLBACK (show_evolution), NULL);724 G_CALLBACK (show_evolution), NULL);
712725
726 DbusmenuServer * menu_server = dbusmenu_server_new("/messaging/commands");
727 DbusmenuMenuitem * root = dbusmenu_menuitem_new();
728
729 DbusmenuMenuitem * mi = dbusmenu_menuitem_new();
730 dbusmenu_menuitem_property_set(mi, DBUSMENU_MENUITEM_PROP_LABEL, _("Compose New Message"));
731 g_signal_connect(G_OBJECT(mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(command_item_activate), EVO_COMPOSE_CMD);
732 dbusmenu_menuitem_child_append(root, mi);
733
734 mi = dbusmenu_menuitem_new();
735 dbusmenu_menuitem_property_set(mi, DBUSMENU_MENUITEM_PROP_LABEL, _("Contacts"));
736 g_signal_connect(G_OBJECT(mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(command_item_activate), EVO_CONTACTS_CMD);
737 dbusmenu_menuitem_child_append(root, mi);
738
739 dbusmenu_server_set_root(menu_server, root);
740 indicate_server_set_menu(server, menu_server);
741
713 client = gconf_client_get_default ();742 client = gconf_client_get_default ();
714 gconf_client_add_dir (client, CONF_DIR, GCONF_CLIENT_PRELOAD_NONE, NULL);743 gconf_client_add_dir (client, CONF_DIR, GCONF_CLIENT_PRELOAD_NONE, NULL);
715744
@@ -945,52 +974,8 @@
945 *974 *
946 */975 */
947976
948/*977static void
949 * Taken from libtomboy, (C) 2008 Novell, LGPL v2 or later978show_evolution (gpointer arg0, guint timestamp, gpointer arg1)
950 */
951static void
952tomboy_window_override_user_time (GtkWindow *window)
953{
954 guint32 ev_time = gtk_get_current_event_time();
955
956 if (ev_time == 0) {
957 /*
958 * FIXME: Global keypresses use an event filter on the root
959 * window, which processes events before GDK sees them.
960 */
961 //ev_time = tomboy_keybinder_get_current_event_time ();
962 ev_time = GDK_CURRENT_TIME;
963 }
964 if (ev_time == 0) {
965 gint ev_mask = gtk_widget_get_events (GTK_WIDGET(window));
966 if (!(ev_mask & GDK_PROPERTY_CHANGE_MASK)) {
967 gtk_widget_add_events (GTK_WIDGET (window),
968 GDK_PROPERTY_CHANGE_MASK);
969 }
970
971 /*
972 * NOTE: Last resort for D-BUS or other non-interactive
973 * openings. Causes roundtrip to server. Lame.
974 */
975 ev_time = gdk_x11_get_server_time (GTK_WIDGET(window)->window);
976 }
977
978 gdk_x11_window_set_user_time (GTK_WIDGET(window)->window, ev_time);
979}
980
981static void
982really_present_window (GtkWindow *window)
983{
984 if (!GTK_WIDGET_REALIZED (window))
985 gtk_widget_realize (GTK_WIDGET (window));
986
987 tomboy_window_override_user_time (window);
988
989 gtk_window_present (window);
990}
991
992static void
993show_evolution (gpointer arg0, gpointer arg1)
994{979{
995#define MAIL_ICON "evolution-mail"980#define MAIL_ICON "evolution-mail"
996 EShell *shell = evo_shell;981 EShell *shell = evo_shell;
@@ -1029,7 +1014,8 @@
1029 return;1014 return;
1030 }1015 }
10311016
1032 really_present_window (mail_window);1017 gtk_window_present_with_time (mail_window, timestamp);
1018
1033 for (i = indicators; i; i = i->next)1019 for (i = indicators; i; i = i->next)
1034 {1020 {
1035 IndicateIndicator *indicator = i->data;1021 IndicateIndicator *indicator = i->data;

Subscribers

People subscribed via source and target branches

to all changes: