[gnac/devel] Display conversion's status in trayicon's tooltip
- From: Benoît Dupasquier <bdupasqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnac/devel] Display conversion's status in trayicon's tooltip
- Date: Fri, 15 Oct 2010 22:13:57 +0000 (UTC)
commit c85c08a49529608fa1bafc3d742232a5ea3bd245
Author: Benoît Dupasquier <bdupasqu src gnome org>
Date: Fri Oct 15 23:11:37 2010 +0100
Display conversion's status in trayicon's tooltip
src/gnac-main.c | 1 +
src/gnac-ui.c | 6 +++++-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/gnac-main.c b/src/gnac-main.c
index 0bf2c58..402e3d1 100644
--- a/src/gnac-main.c
+++ b/src/gnac-main.c
@@ -742,6 +742,7 @@ gnac_on_converter_completion_cb(LibgnacConverter *converter)
gnac_ui_notify(msg);
gnac_ui_push_status(msg);
+ gnac_ui_trayicon_tooltip_update(msg);
}
diff --git a/src/gnac-ui.c b/src/gnac-ui.c
index bc5b5a1..e719455 100644
--- a/src/gnac-ui.c
+++ b/src/gnac-ui.c
@@ -1024,7 +1024,11 @@ gnac_ui_query_tooltip_cb(GtkStatusIcon *status_icon,
{
gchar *name;
name = gnac_utils_get_display_name(tooltip_path, NULL);
- text = g_markup_printf_escaped(" <b>%s</b> ", name);
+ if (name) {
+ text = g_markup_printf_escaped(" <b>%s</b> ", name);
+ } else {
+ text = g_strdup(tooltip_path);
+ }
g_free(name);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]