mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Dense calendar popup window of screen at bottom
The get_allocation function was in the wrong place for the button press
This commit is contained in:
parent
54b492ee83
commit
1f4a2e36db
@ -1292,12 +1292,12 @@ gnc_dense_cal_button_press(GtkWidget *widget,
|
|||||||
// trick with a bit of flicker.
|
// trick with a bit of flicker.
|
||||||
gtk_window_move(GTK_WINDOW(dcal->transPopup), evt->x_root + 5, evt->y_root + 5);
|
gtk_window_move(GTK_WINDOW(dcal->transPopup), evt->x_root + 5, evt->y_root + 5);
|
||||||
|
|
||||||
gtk_widget_get_allocation(GTK_WIDGET(dcal->transPopup), &alloc);
|
|
||||||
|
|
||||||
populate_hover_window(dcal);
|
populate_hover_window(dcal);
|
||||||
gtk_widget_queue_resize(GTK_WIDGET(dcal->transPopup));
|
gtk_widget_queue_resize(GTK_WIDGET(dcal->transPopup));
|
||||||
gtk_widget_show_all(GTK_WIDGET(dcal->transPopup));
|
gtk_widget_show_all(GTK_WIDGET(dcal->transPopup));
|
||||||
|
|
||||||
|
gtk_widget_get_allocation(GTK_WIDGET(dcal->transPopup), &alloc);
|
||||||
|
|
||||||
if (evt->x_root + 5 + alloc.width > dcal->screen_width)
|
if (evt->x_root + 5 + alloc.width > dcal->screen_width)
|
||||||
win_xpos = evt->x_root - 2 - alloc.width;
|
win_xpos = evt->x_root - 2 - alloc.width;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user