mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05:00
Restore ability to build with Gtk<3.
This got broken in 696550a5f2.
This commit is contained in:
parent
b375177c67
commit
ec23a6b5f4
@ -348,9 +348,8 @@ static bool gtk_seat_is_utf8(Seat *seat)
|
|||||||
return inst->ucsdata.line_codepage == CS_UTF8;
|
return inst->ucsdata.line_codepage == CS_UTF8;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool gtk_seat_get_window_pixel_size(Seat *seat, int *w, int *h)
|
static void get_window_pixel_size(GtkFrontend *inst, int *w, int *h)
|
||||||
{
|
{
|
||||||
GtkFrontend *inst = container_of(seat, GtkFrontend, seat);
|
|
||||||
/*
|
/*
|
||||||
* I assume that when the GTK version of this call is available
|
* I assume that when the GTK version of this call is available
|
||||||
* we should use it. Not sure how it differs from the GDK one,
|
* we should use it. Not sure how it differs from the GDK one,
|
||||||
@ -361,6 +360,12 @@ static bool gtk_seat_get_window_pixel_size(Seat *seat, int *w, int *h)
|
|||||||
#else
|
#else
|
||||||
gdk_window_get_size(gtk_widget_get_window(inst->window), w, h);
|
gdk_window_get_size(gtk_widget_get_window(inst->window), w, h);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
static bool gtk_seat_get_window_pixel_size(Seat *seat, int *w, int *h)
|
||||||
|
{
|
||||||
|
GtkFrontend *inst = container_of(seat, GtkFrontend, seat);
|
||||||
|
get_window_pixel_size(inst, w, h);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2456,7 +2461,7 @@ static void gtkwin_request_resize(TermWin *tw, int w, int h)
|
|||||||
* bogus size request which guarantees to be bigger than the
|
* bogus size request which guarantees to be bigger than the
|
||||||
* current size of the drawing area.
|
* current size of the drawing area.
|
||||||
*/
|
*/
|
||||||
win_get_pixels(&inst->termwin, &large_x, &large_y);
|
get_window_pixel_size(inst, &large_x, &large_y);
|
||||||
large_x += 32;
|
large_x += 32;
|
||||||
large_y += 32;
|
large_y += 32;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user