[vte/wip/drawing: 1/7] widget: Remove broken 'visual beep' code
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/drawing: 1/7] widget: Remove broken 'visual beep' code
- Date: Thu, 23 Aug 2012 18:40:37 +0000 (UTC)
commit 3320ba9bb3328df3d18310e10d4edc13c66b87f0
Author: Christian Persch <chpe gnome org>
Date: Tue Aug 21 22:53:56 2012 +0200
widget: Remove broken 'visual beep' code
It's not possible to draw to widget->window outside of a ::draw event,
so don't do that.
https://bugzilla.gnome.org/show_bug.cgi?id=602726
src/vte.c | 21 +--------------------
1 files changed, 1 insertions(+), 20 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 3801f74..83b0541 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -5098,28 +5098,9 @@ _vte_terminal_audible_beep(VteTerminal *terminal)
void
_vte_terminal_visible_beep(VteTerminal *terminal)
{
- GtkWidget *widget;
- GtkAllocation allocation;
- GtkStyle *style;
- PangoColor color;
-
- widget = &terminal->widget;
+ GtkWidget *widget = &terminal->widget;
if (gtk_widget_get_realized (widget)) {
-
- style = gtk_widget_get_style (widget);
- gtk_widget_get_allocation (widget, &allocation);
- color.red = style->fg[gtk_widget_get_state (widget)].red;
- color.green = style->fg[gtk_widget_get_state (widget)].green;
- color.blue = style->fg[gtk_widget_get_state (widget)].blue;
-
- _vte_draw_start(terminal->pvt->draw);
- _vte_draw_fill_rectangle(terminal->pvt->draw,
- 0, 0,
- allocation.width, allocation.height,
- &color, VTE_DRAW_OPAQUE);
- _vte_draw_end(terminal->pvt->draw);
-
/* Force the repaint, max delay of UPDATE_REPEAT_TIMEOUT */
_vte_invalidate_all (terminal);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]