From 68e6e4a7e8e5a217f6288e23ec50290835988f37 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sat, 12 Feb 2011 00:42:54 +0100
Subject: Make symbol menus nicer.
---
liblogdiag/ld-library-toolbar.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
(limited to 'liblogdiag')
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);
--
cgit v1.2.3-70-g09d2