diff src/audacious/util.c @ 4513:867d7caeb95b

- indentation of ui_main.c - moving around some functions and removing some (unused) ones
author mf0102 <0102@gmx.at>
date Tue, 22 Apr 2008 18:27:57 +0200
parents 246244ead30e
children 8f36cce36fef
line wrap: on
line diff
--- a/src/audacious/util.c	Tue Apr 22 17:45:49 2008 +0200
+++ b/src/audacious/util.c	Tue Apr 22 18:27:57 2008 +0200
@@ -754,25 +754,6 @@
     }
 }
 
-
-void
-util_menu_position(GtkMenu * menu, gint * x, gint * y,
-                   gboolean * push_in, gpointer data)
-{
-    GtkRequisition requisition;
-    gint screen_width;
-    gint screen_height;
-    MenuPos *pos = data;
-
-    gtk_widget_size_request(GTK_WIDGET(menu), &requisition);
-
-    screen_width = gdk_screen_width();
-    screen_height = gdk_screen_height();
-
-    *x = CLAMP(pos->x - 2, 0, MAX(0, screen_width - requisition.width));
-    *y = CLAMP(pos->y - 2, 0, MAX(0, screen_height - requisition.height));
-}
-
 GdkFont *
 util_font_load(const gchar * name)
 {