Remove unused signals.

This commit is contained in:
David Capello 2012-04-15 16:08:15 -03:00
parent 48f0a88d66
commit d07cd55245
4 changed files with 0 additions and 21 deletions

View File

@ -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.

View File

@ -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);

View File

@ -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();
}
}

View File

@ -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);