From 6bacc0d5db885a72202cb7f80e505642a36052d4 Mon Sep 17 00:00:00 2001 From: Renato Araujo Oliveira Filho Date: Tue, 11 Sep 2012 17:57:08 -0300 Subject: Splitted qmenumodel plugin in two libraries to make it testable. Create unit test for qmenumodel library. --- examples/simple.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/simple.py b/examples/simple.py index bc2d37c..4efbb8a 100644 --- a/examples/simple.py +++ b/examples/simple.py @@ -26,10 +26,16 @@ numbers.append ('One', 'one') numbers.append ('Two', 'two') numbers.append ('Three', 'three') +numbers2 = Gio.Menu () +numbers2.append ('One2', 'one2') +numbers2.append ('Two2', 'two2') +numbers2.append ('Three2', 'three2') + + menu = Gio.Menu () menu.append ('Menu item', 'one') menu.append_section ('Numbers', numbers) -menu.append_submenu ('Submenu', numbers) +menu.append_submenu ('Submenu', numbers2) # export the menu and action group on d-bus bus = Gio.bus_get_sync (Gio.BusType.SESSION, None) -- cgit v1.2.3