diff --git a/src/gui/base.h b/src/gui/base.h index ed18d8f5c..121bbe377 100644 --- a/src/gui/base.h +++ b/src/gui/base.h @@ -161,18 +161,12 @@ enum { // Special widget signals JI_SIGNAL_BUTTON_SELECT, - JI_SIGNAL_CHECK_CHANGE, - JI_SIGNAL_RADIO_CHANGE, JI_SIGNAL_ENTRY_CHANGE, JI_SIGNAL_LISTBOX_CHANGE, JI_SIGNAL_LISTBOX_SELECT, JI_SIGNAL_COMBOBOX_SELECT, - JI_SIGNAL_MANAGER_EXTERNAL_CLOSE, - JI_SIGNAL_MANAGER_ADD_WINDOW, - JI_SIGNAL_MANAGER_REMOVE_WINDOW, JI_SIGNAL_MANAGER_LOSTCHAR, JI_SIGNAL_MENUITEM_SELECT, - JI_SIGNAL_WINDOW_RESIZE, }; // Flags for jwidget_get_drawable_region. diff --git a/src/gui/button.cpp b/src/gui/button.cpp index dcb960c82..877afe5b1 100644 --- a/src/gui/button.cpp +++ b/src/gui/button.cpp @@ -135,14 +135,11 @@ bool ButtonBase::onProcessMessage(Message* msg) // Swap the select status this->setSelected(!this->isSelected()); - // Signal - jwidget_emit_signal(this, JI_SIGNAL_CHECK_CHANGE); invalidate(); } else if (m_behaviorType == JI_RADIO) { if (!this->isSelected()) { this->setSelected(true); - jwidget_emit_signal(this, JI_SIGNAL_RADIO_CHANGE); } } return true; @@ -211,8 +208,6 @@ bool ButtonBase::onProcessMessage(Message* msg) case JI_CHECK: { - jwidget_emit_signal(this, JI_SIGNAL_CHECK_CHANGE); - // Fire onClick() event Event ev(this); onClick(ev); @@ -226,8 +221,6 @@ bool ButtonBase::onProcessMessage(Message* msg) this->setSelected(false); this->setSelected(true); - jwidget_emit_signal(this, JI_SIGNAL_RADIO_CHANGE); - // Fire onClick() event Event ev(this); onClick(ev); diff --git a/src/gui/frame.cpp b/src/gui/frame.cpp index eb0f9977f..5605c2d55 100644 --- a/src/gui/frame.cpp +++ b/src/gui/frame.cpp @@ -178,7 +178,6 @@ void Frame::remap_window() jwidget_set_rect(this, rect); jrect_free(rect); - jwidget_emit_signal(this, JI_SIGNAL_WINDOW_RESIZE); invalidate(); } @@ -400,7 +399,6 @@ bool Frame::onProcessMessage(Message* msg) this->move_window(rect, false); jrect_free(rect); - jwidget_emit_signal(this, JI_SIGNAL_WINDOW_RESIZE); invalidate(); } } diff --git a/src/gui/manager.cpp b/src/gui/manager.cpp index ea1af642d..c28ea35ae 100644 --- a/src/gui/manager.cpp +++ b/src/gui/manager.cpp @@ -847,9 +847,6 @@ void Manager::_openWindow(Frame* window) jlist_prepend(this->children, window); window->parent = this; - /* append signal */ - jwidget_emit_signal(this, JI_SIGNAL_MANAGER_ADD_WINDOW); - /* broadcast the open message */ msg = jmessage_new(JM_OPEN); jmessage_add_dest(msg, window); @@ -911,9 +908,6 @@ void Manager::_closeWindow(Frame* window, bool redraw_background) jlist_remove(this->children, window); window->parent = NULL; - /* remove signal */ - jwidget_emit_signal(this, JI_SIGNAL_MANAGER_REMOVE_WINDOW); - /* redraw background */ if (reg1) { invalidateRegion(reg1);