[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-855-gc25cd4943

paul at claws-mail.org paul at claws-mail.org
Fri Nov 22 13:53:51 CET 2019


The branch, gtk3 has been updated
       via  c25cd494328a72d50880aa1e6c479bbe1496c567 (commit)
      from  9a67445c1f14544cd470900296c120fe40be46d9 (commit)

Summary of changes:
 src/gtk/menu.c | 37 -------------------------------------
 1 file changed, 37 deletions(-)


- Log -----------------------------------------------------------------
commit c25cd494328a72d50880aa1e6c479bbe1496c567
Author: paul <paul at claws-mail.org>
Date:   Fri Nov 22 13:53:47 2019 +0000

    remove menu_button_position(), no longer used

diff --git a/src/gtk/menu.c b/src/gtk/menu.c
index e5945945f..ee187b85f 100644
--- 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;
-}

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list