Re: ComboBox submenus

2010-01-20 Thread Carlos Pereira
Hi Tadej, 1) you were right, titles in combobox submenus can be easily removed calling gtk_cell_layout_set_cell_data_func, as demonstrated in gtk-demo. 2) I also found that the width of submenus can be easily set, with the property width-chars, applied to the cell_renderer. I posted

ComboBox submenus

2010-01-19 Thread Carlos Pereira
My ComboBox submenus are working fine. There are however a couple of visual details that could be improved, in my opinion. I am sending as attachement a small (70 lines) working example (C + makefile) showing my points: 1) Submenus should look the same in ComboBox and Popup menus

Re: ComboBox submenus

2010-01-19 Thread Carlos Pereira
It seems the mailling list is filtering even small tar.gz files as mine, so I posted it here: http://www.gamgi.org/combo.tar.gz Regards, Carlos My ComboBox submenus are working fine. There are however a couple of visual details that could be improved, in my opinion. I am sending

Re: ComboBox submenus

2010-01-19 Thread Tadej Borovšak
Hello. 1) Submenus should look the same in ComboBox and Popup menus.  Therefore Main 1 and Main 2 (see working example or tree store below) should not appear repeated again in the submenus. Even if they were there, they should not be selectable as they are only entry points to submenus. The

Re: ComboBox submenus

2010-01-19 Thread Carlos Pereira
Hi Tadej, many thanks for responding! I saw your bug report, will study gtk-demo to understand how this can be achieved Best regards, Carlos Hello. 1) Submenus should look the same in ComboBox and Popup menus. Therefore Main 1 and Main 2 (see working example or tree store below)