summaryrefslogtreecommitdiff
path: root/emerald
diff options
context:
space:
mode:
authortest-tools <test-tools@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-12-12 12:02:18 +0000
committertest-tools <test-tools@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-12-12 12:02:18 +0000
commita4371239fa70db357f0392d6a2407563fe9eb9b9 (patch)
treebd49d3bcc1701d2f47bb76348112328b1be24849 /emerald
parent0f7d1187df2e6f972b6807b3f9e73ffa007e5b63 (diff)
downloadmarex-dev-a4371239fa70db357f0392d6a2407563fe9eb9b9.tar.gz
marex-dev-a4371239fa70db357f0392d6a2407563fe9eb9b9.tar.bz2
emerald: Quick fix for #295
git-svn-id: file:///beryl/trunk@1690 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'emerald')
-rw-r--r--emerald/src/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/emerald/src/main.c b/emerald/src/main.c
index 3bc3778..e2bbf44 100644
--- a/emerald/src/main.c
+++ b/emerald/src/main.c
@@ -2983,9 +2983,11 @@ update_event_windows (WnckWindow *win)
static const char *
wnck_window_get_real_name (WnckWindow *win)
{
- return wnck_window_has_name (win) ? wnck_window_get_name (win) : NULL;
+ return wnck_window_has_name (win) ? wnck_window_get_name (win) : "noname";
}
-#define wnck_window_get_name wnck_window_get_real_name
+#define wnck_window_get_name(w) wnck_window_get_real_name(w)
+#else
+#define wnck_window_get_name(w) "noname"
#endif
gint
max_window_name_width (WnckWindow *win)