mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
Fix thinko introduced in 8833634f4
.
This prevented compilation with Gtk 2.
This commit is contained in:
parent
fb023da0fd
commit
230f7d5628
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user