[Pidgin] #10675: Handle the GtkIMHTML sizing when its "interior-focus" style property is set to FALSE
Pidgin
trac at pidgin.im
Fri Nov 6 07:30:17 EST 2009
#10675: Handle the GtkIMHTML sizing when its "interior-focus" style property is set
to FALSE
--------------------+-------------------------------------------------------
Reporter: nix_nix | Type: patch
Status: new | Component: pidgin (gtk)
Version: 2.6.3 | Keywords:
--------------------+-------------------------------------------------------
The Hildon theme on Maemo 5 has this style property set to FALSE, and the
dependent "focus-line-width" property set to "18". Checking from the size-
request portion of the GtkTextView code, these two style properties in
concert mean that, in order for the GtkTextView to display itself
properly, if "interior-focus" is off, it needs to request twice the
"focus-line-width" in addition to whatever else it needs.
Sure enough, taking this into account causes the gtkconv and gtkstatusbox
imhtmls to size correctly as the user types. On the desktop (Fedora 11, in
my case) the "interior-focus" property is on, so this modification has no
effect.
The attached patch is inspired by gtk_text_view_size_request(). It is also
available via
mtn pull piiickoska.go-nix.ca org.maemo.garage.pidgin.pidgin.gtkimhtml-
sizing.upstream
--
Ticket URL: <http://developer.pidgin.im/ticket/10675>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list