[gtk] Cosmetics



commit 3dea73bd4a9f7253c8185ef07b1c5cf781f2d4c9
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jun 1 04:18:23 2019 +0000

    Cosmetics
    
    Remove comments that are old enough to still
    talk about option menus and item factories.

 gtk/gtkmenu.h | 18 ------------------
 1 file changed, 18 deletions(-)
---
diff --git a/gtk/gtkmenu.h b/gtk/gtkmenu.h
index b86f5121fb..c4217516db 100644
--- a/gtk/gtkmenu.h
+++ b/gtk/gtkmenu.h
@@ -59,7 +59,6 @@ GtkWidget* gtk_menu_new                         (void);
 GDK_AVAILABLE_IN_ALL
 GtkWidget* gtk_menu_new_from_model        (GMenuModel *model);
 
-/* Display the menu onscreen */
 GDK_AVAILABLE_IN_ALL
 void       gtk_menu_popup_at_rect         (GtkMenu             *menu,
                                            GdkSurface          *rect_surface,
@@ -77,27 +76,18 @@ GDK_AVAILABLE_IN_ALL
 void       gtk_menu_popup_at_pointer      (GtkMenu             *menu,
                                            const GdkEvent      *trigger_event);
 
-/* Position the menu according to its position function. Called
- * from gtkmenuitem.c when a menu-item changes its allocation
- */
 GDK_AVAILABLE_IN_ALL
 void      gtk_menu_reposition            (GtkMenu             *menu);
 
 GDK_AVAILABLE_IN_ALL
 void      gtk_menu_popdown               (GtkMenu             *menu);
 
-/* Keep track of the last menu item selected. (For the purposes
- * of the option menu
- */
 GDK_AVAILABLE_IN_ALL
 GtkWidget* gtk_menu_get_active           (GtkMenu             *menu);
 GDK_AVAILABLE_IN_ALL
 void      gtk_menu_set_active            (GtkMenu             *menu,
                                           guint                index);
 
-/* set/get the accelerator group that holds global accelerators (should
- * be added to the corresponding toplevel with gtk_window_add_accel_group().
- */
 GDK_AVAILABLE_IN_ALL
 void          gtk_menu_set_accel_group   (GtkMenu             *menu,
                                           GtkAccelGroup       *accel_group);
@@ -109,10 +99,6 @@ void           gtk_menu_set_accel_path    (GtkMenu             *menu,
 GDK_AVAILABLE_IN_ALL
 const gchar*   gtk_menu_get_accel_path    (GtkMenu             *menu);
 
-/* A reference count is kept for a widget when it is attached to
- * a particular widget. This is typically a menu item; it may also
- * be a widget with a popup menu - for instance, the Notebook widget.
- */
 GDK_AVAILABLE_IN_ALL
 void      gtk_menu_attach_to_widget      (GtkMenu             *menu,
                                           GtkWidget           *attach_widget,
@@ -120,10 +106,6 @@ void          gtk_menu_attach_to_widget      (GtkMenu             *menu,
 GDK_AVAILABLE_IN_ALL
 void      gtk_menu_detach                (GtkMenu             *menu);
 
-/* This should be dumped in favor of data set when the menu is popped
- * up - that is currently in the ItemFactory code, but should be
- * in the Menu code.
- */
 GDK_AVAILABLE_IN_ALL
 GtkWidget* gtk_menu_get_attach_widget    (GtkMenu             *menu);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]