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
1=== modified file 'configure.ac'
2--- configure.ac 2010-01-21 21:26:00 +0000
3+++ configure.ac 2010-03-09 15:30:37 +0000
4@@ -1,5 +1,5 @@
5 AC_PREREQ(2.53)
6-AC_INIT(evolution-indicator, 0.2.6, [])
7+AC_INIT(evolution-indicator, 0.2.7, [])
8 AM_INIT_AUTOMAKE()
9 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
10 AC_CONFIG_SRCDIR(src/evolution-indicator.c)
11@@ -51,7 +51,7 @@
12 AC_SUBST(GCC_FLAGS)
13
14 PKG_CHECK_MODULES(DEPS,
15- indicate >= 0.2.0
16+ indicate >= 0.3.0
17 evolution-plugin
18 dbus-1
19 dbus-glib-1
20
21=== modified file 'debian/changelog'
22--- debian/changelog 2010-01-25 17:48:12 +0000
23+++ debian/changelog 2010-03-09 15:30:37 +0000
24@@ -1,3 +1,12 @@
25+evolution-indicator (0.2.7-0ubuntu1~ppa1) lucid; urgency=low
26+
27+ * Upstream Release 0.2.7
28+ * Update to newer libindicate signaling
29+ * Add in dynamic command items.
30+ * debian/control: No depending on libindicate 0.3.0 or higher.
31+
32+ -- Ted Gould <ted@ubuntu.com> Thu, 04 Mar 2010 11:28:52 -0600
33+
34 evolution-indicator (0.2.6-0ubuntu3) lucid; urgency=low
35
36 * Rebuild to get the new gtkhtml shlib
37
38=== modified file 'debian/control'
39--- debian/control 2009-09-10 15:26:57 +0000
40+++ debian/control 2010-03-09 15:30:37 +0000
41@@ -14,7 +14,7 @@
42 libdbus-glib-1-dev (>= 0.7),
43 evolution-dev,
44 evolution-data-server-dev,
45- libindicate-dev (>= 0.2.0),
46+ libindicate-dev (>= 0.3.0),
47 libnotify-dev,
48 libcanberra-dev,
49 libgtkhtml-editor-dev,
50
51=== modified file 'src/evolution-indicator.c'
52--- src/evolution-indicator.c 2009-12-17 14:59:03 +0000
53+++ src/evolution-indicator.c 2010-03-09 15:30:37 +0000
54@@ -100,7 +100,7 @@
55 int e_plugin_lib_enable (EPluginLib *ep, int enable);
56 GtkWidget * e_plugin_lib_get_configure_widget (EPlugin *epl);
57
58-static void show_evolution (gpointer arg0, gpointer arg1);
59+static void show_evolution (gpointer arg0, guint timestamp, gpointer arg1);
60
61 static void show_evolution_in_indicator_applet (void);
62 static void hide_evolution_in_indicator_applet (void);
63@@ -671,6 +671,19 @@
64 update_accounts ();
65 }
66
67+#define EVO_CONTACTS_CMD "evolution -c contacts"
68+#define EVO_COMPOSE_CMD "evolution mailto:"
69+
70+static void
71+command_item_activate (DbusmenuMenuitem * mi, guint timestamp, gpointer user_data)
72+{
73+ gchar * command = (gchar *)user_data;
74+ if (!g_spawn_command_line_async(command, NULL)) {
75+ g_warning("Unable to execute command '%s'", command);
76+ }
77+ return;
78+}
79+
80 int
81 e_plugin_lib_enable (EPluginLib *ep, int enable)
82 {
83@@ -710,6 +723,22 @@
84 g_signal_connect (server, "server-display",
85 G_CALLBACK (show_evolution), NULL);
86
87+ DbusmenuServer * menu_server = dbusmenu_server_new("/messaging/commands");
88+ DbusmenuMenuitem * root = dbusmenu_menuitem_new();
89+
90+ DbusmenuMenuitem * mi = dbusmenu_menuitem_new();
91+ dbusmenu_menuitem_property_set(mi, DBUSMENU_MENUITEM_PROP_LABEL, _("Compose New Message"));
92+ g_signal_connect(G_OBJECT(mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(command_item_activate), EVO_COMPOSE_CMD);
93+ dbusmenu_menuitem_child_append(root, mi);
94+
95+ mi = dbusmenu_menuitem_new();
96+ dbusmenu_menuitem_property_set(mi, DBUSMENU_MENUITEM_PROP_LABEL, _("Contacts"));
97+ g_signal_connect(G_OBJECT(mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(command_item_activate), EVO_CONTACTS_CMD);
98+ dbusmenu_menuitem_child_append(root, mi);
99+
100+ dbusmenu_server_set_root(menu_server, root);
101+ indicate_server_set_menu(server, menu_server);
102+
103 client = gconf_client_get_default ();
104 gconf_client_add_dir (client, CONF_DIR, GCONF_CLIENT_PRELOAD_NONE, NULL);
105
106@@ -945,52 +974,8 @@
107 *
108 */
109
110-/*
111- * Taken from libtomboy, (C) 2008 Novell, LGPL v2 or later
112- */
113-static void
114-tomboy_window_override_user_time (GtkWindow *window)
115-{
116- guint32 ev_time = gtk_get_current_event_time();
117-
118- if (ev_time == 0) {
119- /*
120- * FIXME: Global keypresses use an event filter on the root
121- * window, which processes events before GDK sees them.
122- */
123- //ev_time = tomboy_keybinder_get_current_event_time ();
124- ev_time = GDK_CURRENT_TIME;
125- }
126- if (ev_time == 0) {
127- gint ev_mask = gtk_widget_get_events (GTK_WIDGET(window));
128- if (!(ev_mask & GDK_PROPERTY_CHANGE_MASK)) {
129- gtk_widget_add_events (GTK_WIDGET (window),
130- GDK_PROPERTY_CHANGE_MASK);
131- }
132-
133- /*
134- * NOTE: Last resort for D-BUS or other non-interactive
135- * openings. Causes roundtrip to server. Lame.
136- */
137- ev_time = gdk_x11_get_server_time (GTK_WIDGET(window)->window);
138- }
139-
140- gdk_x11_window_set_user_time (GTK_WIDGET(window)->window, ev_time);
141-}
142-
143-static void
144-really_present_window (GtkWindow *window)
145-{
146- if (!GTK_WIDGET_REALIZED (window))
147- gtk_widget_realize (GTK_WIDGET (window));
148-
149- tomboy_window_override_user_time (window);
150-
151- gtk_window_present (window);
152-}
153-
154-static void
155-show_evolution (gpointer arg0, gpointer arg1)
156+static void
157+show_evolution (gpointer arg0, guint timestamp, gpointer arg1)
158 {
159 #define MAIL_ICON "evolution-mail"
160 EShell *shell = evo_shell;
161@@ -1029,7 +1014,8 @@
162 return;
163 }
164
165- really_present_window (mail_window);
166+ gtk_window_present_with_time (mail_window, timestamp);
167+
168 for (i = indicators; i; i = i->next)
169 {
170 IndicateIndicator *indicator = i->data;

Subscribers

People subscribed via source and target branches

to all changes: