diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-02-03 18:24:15 +0100 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-02-03 18:24:15 +0100 |
commit | 7595847dcd7e6e7f69a61031d1e3dfbe16f7baac (patch) | |
tree | b6e19bec12970072feaac7aa94973adce513b3ff /src | |
parent | 85a365b27c845389d6b9540c296fc5edef4ad648 (diff) | |
download | ayatana-indicator-messages-7595847dcd7e6e7f69a61031d1e3dfbe16f7baac.tar.gz ayatana-indicator-messages-7595847dcd7e6e7f69a61031d1e3dfbe16f7baac.tar.bz2 ayatana-indicator-messages-7595847dcd7e6e7f69a61031d1e3dfbe16f7baac.zip |
Don't draw empty lozenges
Diffstat (limited to 'src')
-rw-r--r-- | src/indicator-messages.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/indicator-messages.c b/src/indicator-messages.c index 66d7276..34152ac 100644 --- a/src/indicator-messages.c +++ b/src/indicator-messages.c @@ -540,6 +540,9 @@ numbers_draw_cb (GtkWidget *widget, GdkEventExpose *event, gpointer data) pango_layout_get_extents (layout, NULL, &layout_extents); pango_extents_to_pixels (&layout_extents, NULL); + if (layout_extents.width == 0) + return TRUE; + #if GTK_CHECK_VERSION(3, 0, 0) cairo_save (cr); #else |