mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 06:38:37 -05: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(data);
|
||||||
free(col_css);
|
free(col_css);
|
||||||
#else
|
#else
|
||||||
if (gtk_widget_get_window(win)) {
|
if (gtk_widget_get_window(widget)) {
|
||||||
/* For GTK1, which doesn't have a 'const' on
|
/* For GTK1, which doesn't have a 'const' on
|
||||||
* gdk_window_set_background's second parameter type. */
|
* gdk_window_set_background's second parameter type. */
|
||||||
GdkColor col_mutable = *col;
|
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
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user