From 6e6dbb068e03a8bb818a76ba774d6f94ade7389f Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 22 Dec 2013 16:44:58 -0600 Subject: Fix numerous drawing glitches in Firefox --- src/qt_qt_wrapper.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/qt_qt_wrapper.cpp') diff --git a/src/qt_qt_wrapper.cpp b/src/qt_qt_wrapper.cpp index d3e13bb..928aef3 100644 --- a/src/qt_qt_wrapper.cpp +++ b/src/qt_qt_wrapper.cpp @@ -651,7 +651,7 @@ void drawButton(GdkWindow* window, GtkStyle* style, GtkStateType state, int defa } if (gwidget) { - TQString gwLabel(gtk_button_get_label(gwidget)); + TQString gwLabel(gtk_button_get_label(gwidget)); if (gtk_button_get_use_stock(gwidget)) { GtkStockItem stockData; gtk_stock_lookup(gwLabel.ascii(), &stockData); @@ -660,8 +660,8 @@ void drawButton(GdkWindow* window, GtkStyle* style, GtkStateType state, int defa gwLabel.replace("&", "&&"); gwLabel.replace("_", "&"); - TQPixmap buttonicon; - TQBitmap buttonicon_mask; + TQPixmap buttonicon; + TQBitmap buttonicon_mask; GtkWidget* giconwidget = gtk_button_get_image(gwidget); if (giconwidget) { @@ -746,9 +746,9 @@ void drawButton(GdkWindow* window, GtkStyle* style, GtkStateType state, int defa if (defaultButton) sflags |= TQStyle::Style_ButtonDefault; button.setDefault(defaultButton); - + painter.fillRect(0, 0, w, h, tqApp->palette().active().background()); - + tqApp->style().drawControl(TQStyle::CE_PushButton, &painter, &button, TQRect(0,0,w,h), button.palette().active(), sflags); -- cgit v1.2.3