mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-10-04 05:11:49 +02:00
- Core: simplified CPU / SMP flag calculations - Added ALSA audio output driver to Linux port [Nach] - Improved font handling for Windows and Linux ports - Greatly cleaned up the user interface - Windows port now uses Unicode instead of ANSI - Added localization support - Config and locale files can now be placed inside bsnes executable directory for single-user mode, if desired - Fixed crashing bug with HQ2x on Linux/amd64 port [RedDwarf, Nach] - Hid "Power Cycle" option by default, as it is too similar to "Reset" - Slighty tweaked program icon [FitzRoy] - Minor code cleanups -- replaced union bitfields with templates, improved memory allocation, etc
21 lines
535 B
C++
21 lines
535 B
C++
void hiro_pmenuitem_tick(pMenuItem *p) {
|
|
if(p->self.on_tick) p->self.on_tick(Event(Event::Tick, 0, &p->self));
|
|
}
|
|
|
|
void pMenuItem::create(const char *text) {
|
|
item = gtk_menu_item_new_with_label(text ? text : "");
|
|
set_default_font(item);
|
|
g_signal_connect_swapped(G_OBJECT(item), "activate", G_CALLBACK(hiro_pmenuitem_tick), (gpointer)this);
|
|
gtk_widget_show(item);
|
|
}
|
|
|
|
pMenuItem::pMenuItem(MenuItem &self_) : pMenuControl(self_), self(self_) {
|
|
item = 0;
|
|
}
|
|
|
|
/* internal */
|
|
|
|
GtkWidget* pMenuItem::gtk_handle() {
|
|
return item;
|
|
}
|