X-Git-Url: https://git.tartarus.org/?p=simon%2Fputty.git;a=blobdiff_plain;f=unix%2Fgtkwin.c;h=bca6daa43c2911e7912be8a57131684b7050d541;hp=69e335094c8eaf8546e402c674923da712f1ebd2;hb=230f7d56284a703c65c4fecf7e6f23b791043f81;hpb=fb023da0fdcbfca104b39c2315a79186d7254c99 diff --git a/unix/gtkwin.c b/unix/gtkwin.c index 69e3350..bca6daa 100644 --- a/unix/gtkwin.c +++ b/unix/gtkwin.c @@ -2188,11 +2188,11 @@ void set_gtk_widget_background(GtkWidget *widget, const GdkColor *col) free(data); free(col_css); #else - if (gtk_widget_get_window(win)) { + if (gtk_widget_get_window(widget)) { /* For GTK1, which doesn't have a 'const' on * gdk_window_set_background's second parameter type. */ GdkColor col_mutable = *col; - gdk_window_set_background(gtk_widget_get_window(win), &col_mutable); + gdk_window_set_background(gtk_widget_get_window(widget), &col_mutable); } #endif }