summaryrefslogtreecommitdiff
path: root/gtk/gtkmenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkmenu.c')
-rw-r--r--gtk/gtkmenu.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index 7d3f2e879b..8056c4a8a7 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -68,8 +68,6 @@ static void gtk_menu_size_request (GtkWidget *widget,
static void gtk_menu_size_allocate (GtkWidget *widget,
GtkAllocation *allocation);
static void gtk_menu_paint (GtkWidget *widget);
-static void gtk_menu_draw (GtkWidget *widget,
- GdkRectangle *area);
static gboolean gtk_menu_expose (GtkWidget *widget,
GdkEventExpose *event);
static gboolean gtk_menu_key_press (GtkWidget *widget,
@@ -162,7 +160,6 @@ gtk_menu_class_init (GtkMenuClass *class)
widget_class->realize = gtk_menu_realize;
widget_class->unrealize = gtk_menu_unrealize;
- widget_class->draw = gtk_menu_draw;
widget_class->size_request = gtk_menu_size_request;
widget_class->size_allocate = gtk_menu_size_allocate;
widget_class->expose_event = gtk_menu_expose;
@@ -1337,37 +1334,6 @@ gtk_menu_paint (GtkWidget *widget)
}
}
-static void
-gtk_menu_draw (GtkWidget *widget,
- GdkRectangle *area)
-{
- GtkMenuShell *menu_shell;
- GtkWidget *child;
- GdkRectangle child_area;
- GList *children;
-
- g_return_if_fail (widget != NULL);
- g_return_if_fail (GTK_IS_MENU (widget));
- g_return_if_fail (area != NULL);
-
- if (GTK_WIDGET_DRAWABLE (widget))
- {
- gtk_menu_paint (widget);
-
- menu_shell = GTK_MENU_SHELL (widget);
-
- children = menu_shell->children;
- while (children)
- {
- child = children->data;
- children = children->next;
-
- if (gtk_widget_intersect (child, area, &child_area))
- gtk_widget_draw (child, &child_area);
- }
- }
-}
-
static gboolean
gtk_menu_expose (GtkWidget *widget,
GdkEventExpose *event)