talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit c25cd494328a72d50880aa1e6c479bbe1496c567
parent 9a67445c1f14544cd470900296c120fe40be46d9
Author: paul <paul@claws-mail.org>
Date:   Fri, 22 Nov 2019 13:53:47 +0000

remove menu_button_position(), no longer used

Diffstat:
Msrc/gtk/menu.c | 37-------------------------------------
1 file changed, 0 insertions(+), 37 deletions(-)

diff --git a/src/gtk/menu.c b/src/gtk/menu.c @@ -174,40 +174,3 @@ void menu_set_sensitive_all(GtkMenuShell *menu_shell, gboolean sensitive) g_list_free(children); } - -void menu_button_position(GtkMenu *menu, gint *x, gint *y, gboolean *push_in, - gpointer user_data) -{ - GtkWidget *widget; - gint wheight; - gint wx, wy; - GtkAllocation allocation; - GtkRequisition mreq, wreq; - GdkScreen *screen; - GdkRectangle monitor; - gint monitor_num; - - cm_return_if_fail(x && y); - cm_return_if_fail(GTK_IS_BUTTON(user_data)); - - widget = GTK_WIDGET(user_data); - - gdk_window_get_origin(gtk_widget_get_window(widget), x, y); - gtk_widget_get_requisition(widget, &wreq); - wheight = wreq.height; - gtk_widget_get_allocation(widget, &allocation); - wx = allocation.x; - wy = allocation.y; - - gtk_widget_size_request(GTK_WIDGET(menu), &mreq); - screen = gtk_widget_get_screen (widget); - monitor_num = gdk_screen_get_monitor_at_point (screen, *x, *y); - gdk_screen_get_monitor_geometry (screen, monitor_num, - &monitor); - - *x = *x + wx; - *y = *y + wy + wheight; - - if (*y + mreq.height >= monitor.height) - *y -= mreq.height; -}