Fix minor coding error
authorColin Clark <colin.clark@cclark.uk>
Sun, 7 Nov 2021 11:28:52 +0000 (11:28 +0000)
committerColin Clark <colin.clark@cclark.uk>
Sun, 7 Nov 2021 11:28:52 +0000 (11:28 +0000)
Fix typo.

src/ui_bookmark.c

index 725b278..3989715 100644 (file)
@@ -394,7 +394,7 @@ static void bookmark_menu_position_cb(GtkMenu *menu, gint *x, gint *y, gint *pus
        GtkWidget *button = data;
        GtkAllocation allocation;
 
-       gtk_widget_set_allocation(button, &allocation);
+       gtk_widget_get_allocation(button, &allocation);
        gdk_window_get_origin(gtk_widget_get_window(button), x, y);
        *y += allocation.y + allocation.height;
 }