[Pidgin] #1143: Conversation font size buttons change by two sizes per click
Pidgin
trac at pidgin.im
Sat May 26 00:14:08 EDT 2007
#1143: Conversation font size buttons change by two sizes per click
---------------------------+------------------------------------------------
Reporter: hobbified | Owner: rlaager
Type: defect | Status: new
Priority: minor | Milestone: 2.0.2
Component: pidgin (gtk) | Version: 2.0
Resolution: | Keywords:
Pending: 0 |
---------------------------+------------------------------------------------
Comment (by kstange):
I've determined what's causing the problem... when you click any of the
buttons, it first sets the imhtml property, and toggles the button, then
calls update_buttons to make sure they're right. In the case of
bold/italic/underline, the button depresses and stays depressed. In the
case of font +/- the function:
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toolbar->smaller_size),
FALSE);
is always called. When it's called, it emits the signals "clicked" and
"toggled" and since we listen for "clicked" we activate the feature again,
thus resizing twice. I'm not sure how we can tell the difference between
a user click and a "fake" click. I guess we could try listening for the
"released" signal, but it would be a hack to do so.
--
Ticket URL: <http://developer.pidgin.im/ticket/1143#comment:5>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list