aboutsummaryrefslogtreecommitdiff
path: root/liblogdiag
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2011-02-12 00:42:54 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2011-02-12 18:26:27 +0100
commit68e6e4a7e8e5a217f6288e23ec50290835988f37 (patch)
tree927647dbe86c46d0b81987a49a69f5cb2662721c /liblogdiag
parentb7875c361f6a4f07897960b3cb30f2ab28cf3e67 (diff)
downloadlogdiag-68e6e4a7e8e5a217f6288e23ec50290835988f37.tar.gz
logdiag-68e6e4a7e8e5a217f6288e23ec50290835988f37.tar.xz
logdiag-68e6e4a7e8e5a217f6288e23ec50290835988f37.zip
Make symbol menus nicer.
Diffstat (limited to 'liblogdiag')
-rw-r--r--liblogdiag/ld-library-toolbar.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/liblogdiag/ld-library-toolbar.c b/liblogdiag/ld-library-toolbar.c
index 795ce01..2c4281a 100644
--- a/liblogdiag/ld-library-toolbar.c
+++ b/liblogdiag/ld-library-toolbar.c
@@ -658,6 +658,14 @@ on_canvas_exposed (GtkWidget *widget, GdkEventExpose *event, gpointer user_data)
{
SymbolMenuItem *item;
+ if (i)
+ {
+ cairo_move_to (cr, x - 0.5, data->menu_y + 1);
+ cairo_line_to (cr, x - 0.5, data->menu_y + data->menu_height);
+ cairo_set_source_rgb (cr, 0.5, 0.5, 0.5);
+ cairo_stroke (cr);
+ }
+
item = data->items + i;
cairo_save (cr);
@@ -682,7 +690,8 @@ on_canvas_exposed (GtkWidget *widget, GdkEventExpose *event, gpointer user_data)
x += item->width;
}
- cairo_rectangle (cr, 0, data->menu_y, data->menu_width, data->menu_height);
+ cairo_rectangle (cr, 0.5, data->menu_y + 0.5,
+ data->menu_width, data->menu_height);
cairo_set_source_rgb (cr, 0, 0, 0);
cairo_stroke (cr);