| 1887 // register uilistbox for both widgets, so it doesn't matter which |
1887 // register uilistbox for both widgets, so it doesn't matter which |
| 1888 // widget is used later |
1888 // widget is used later |
| 1889 g_object_set_data(G_OBJECT(scroll_area), "ui_listbox", uilistbox); |
1889 g_object_set_data(G_OBJECT(scroll_area), "ui_listbox", uilistbox); |
| 1890 g_object_set_data(G_OBJECT(listbox), "ui_listbox", uilistbox); |
1890 g_object_set_data(G_OBJECT(listbox), "ui_listbox", uilistbox); |
| 1891 |
1891 |
| |
1892 if(args->contextmenu) { |
| |
1893 UIMENU menu = ui_contextmenu_create(args->contextmenu, obj, listbox); |
| |
1894 ui_widget_set_contextmenu(listbox, menu); |
| |
1895 } |
| |
1896 |
| 1892 // signals |
1897 // signals |
| 1893 g_signal_connect( |
1898 g_signal_connect( |
| 1894 listbox, |
1899 listbox, |
| 1895 "destroy", |
1900 "destroy", |
| 1896 G_CALLBACK(ui_destroy_sourcelist), |
1901 G_CALLBACK(ui_destroy_sourcelist), |