From 69fee4fe72cf95f8db4c7d99808d48d9823e083c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Guelfucci?= Date: Thu, 1 Nov 2012 17:29:46 +0100 Subject: [PATCH] Improve xfce_panel_plugin_position_widget documentation. Fix small typos and be more explicit about what the function does. It does not actually position the widget, it computes the coordinates needed to position it. --- libxfce4panel/xfce-panel-plugin.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libxfce4panel/xfce-panel-plugin.c b/libxfce4panel/xfce-panel-plugin.c index 8126922..525dfd7 100644 --- a/libxfce4panel/xfce-panel-plugin.c +++ b/libxfce4panel/xfce-panel-plugin.c @@ -2391,11 +2391,11 @@ xfce_panel_plugin_arrow_type (XfcePanelPlugin *plugin) * @menu_widget : a #GtkWidget that will be used as popup menu. * @attach_widget : a #GtkWidget relative to which the menu should be positioned. * @x : return location for the x coordinate. - * @y : return location for the x coordinate. + * @y : return location for the y coordinate. * - * The menu widget is positioned relative to @attach_widget. - * If @attach_widget is NULL, the menu widget is instead positioned - * relative to @panel_plugin. + * Computes the x and y coordinates to position the @menu_widget + * relative to @attach_widget. If @attach_widget is NULL, the computed + * position will be relative to @plugin. * * This function is intended for custom menu widgets. * For a regular #GtkMenu you should use xfce_panel_plugin_position_menu() -- 1.7.10.4