| 1195 int *y, |
1195 int *y, |
| 1196 gboolean *push_in, |
1196 gboolean *push_in, |
| 1197 gpointer data) |
1197 gpointer data) |
| 1198 { |
1198 { |
| 1199 GtkWidget *widget = GTK_WIDGET(data); |
1199 GtkWidget *widget = GTK_WIDGET(data); |
| 1200 GtkRequisition menu_req; |
|
| 1201 GtkAllocation allocation; |
1200 GtkAllocation allocation; |
| 1202 GtkStyleContext *context; |
1201 GtkStyleContext *context; |
| 1203 gint ythickness; |
1202 gint ythickness; |
| 1204 int savy; |
1203 int savy; |
| 1205 |
1204 |
| 1206 context = gtk_widget_get_style_context(widget); |
1205 context = gtk_widget_get_style_context(widget); |
| 1207 gtk_style_context_get(context, gtk_style_context_get_state(context), |
1206 gtk_style_context_get(context, gtk_style_context_get_state(context), |
| 1208 "ythickness", &ythickness, NULL); |
1207 "ythickness", &ythickness, NULL); |
| 1209 gtk_widget_get_allocation(widget, &allocation); |
1208 gtk_widget_get_allocation(widget, &allocation); |
| 1210 gtk_widget_get_preferred_size(GTK_WIDGET(menu), NULL, &menu_req); |
|
| 1211 gdk_window_get_origin(gtk_widget_get_window(widget), x, y); |
1209 gdk_window_get_origin(gtk_widget_get_window(widget), x, y); |
| 1212 *x += allocation.x; |
1210 *x += allocation.x; |
| 1213 *y += allocation.y + allocation.height; |
1211 *y += allocation.y + allocation.height; |
| 1214 savy = *y; |
1212 savy = *y; |
| 1215 |
1213 |