Feature #995 ยป 0052-gtk4x-fcmp-Replace-deprecated-gtk_widget_get_allocat.patch
client/gui-gtk-5.0/gui_stuff.c | ||
---|---|---|
int curr_y = 0;
|
||
while (GTK_IS_WIDGET(child)) {
|
||
GtkAllocation alloc;
|
||
gtk_widget_get_allocation(child, &alloc);
|
||
curr_y = alloc.height + alloc.y;
|
||
curr_y += gtk_widget_get_height(GTK_WIDGET(child));
|
||
if (curr_y > y) {
|
||
return row_number;
|
tools/fcmp/mpgui_gtk5.c | ||
---|---|---|
int curr_y = 0;
|
||
while (GTK_IS_WIDGET(child)) {
|
||
GtkAllocation alloc;
|
||
gtk_widget_get_allocation(child, &alloc);
|
||
curr_y = alloc.height + alloc.y;
|
||
curr_y += gtk_widget_get_height(GTK_WIDGET(child));
|
||
if (curr_y > y) {
|
||
FcMPRow *row = g_list_model_get_item(G_LIST_MODEL(main_store), row_number);
|