]> granicus.if.org Git - transmission/commit
(trunk gtk) make "gtr_label_set_text" public and use it everywhere instead of gtk_lab...
authorJordan Lee <jordan@transmissionbt.com>
Fri, 21 Jan 2011 16:32:27 +0000 (16:32 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Fri, 21 Jan 2011 16:32:27 +0000 (16:32 +0000)
commitaea77bc9f690e75ff5f5bac7cef0b1cd17dc708b
treed621ff2a072a4e0c121160de469209853f733947
parent9ce58e33ac33c5817ff884b41f09995993b74b03
(trunk gtk) make "gtr_label_set_text" public and use it everywhere instead of gtk_label_set_text()

Some of the refresh events to the main window's torrent list are caused by main window relayout caused by the toolbar's GtkLabels recalculating their size after being updated once per second. To prevent relayout in some trivial cases, I'm replacing the gtk_label_set_text() calls with gtr_label_set_text() because the latter doesn't update the label widget if the old and new text strings are the same.

There are other changes that can handle more important cases -- I'll test those out next.
gtk/details.c
gtk/makemeta-ui.c
gtk/stats.c
gtk/tr-prefs.c
gtk/tr-window.c
gtk/util.c
gtk/util.h