1383 |
G_CALLBACK (tearoff_remove), menu); |
G_CALLBACK (tearoff_remove), menu); |
1384 |
} |
} |
1385 |
|
|
|
int xg_debug = 0; |
|
|
|
|
1386 |
/* Create a menu item widget, and connect the callbacks. |
/* Create a menu item widget, and connect the callbacks. |
1387 |
ITEM decribes the menu item. |
ITEM decribes the menu item. |
1388 |
F is the frame the created menu belongs to. |
F is the frame the created menu belongs to. |
2947 |
GdkEventExpose *event; |
GdkEventExpose *event; |
2948 |
gpointer client_data; |
gpointer client_data; |
2949 |
{ |
{ |
2950 |
event->area.x = event->area.y = 0; |
gint width, height; |
2951 |
event->area.width = event->area.height = 1000; |
|
2952 |
|
gdk_drawable_get_size (event->window, &width, &height); |
2953 |
|
|
2954 |
|
event->area.x -= width > event->area.width ? width-event->area.width : 0; |
2955 |
|
event->area.y -= height > event->area.height ? height-event->area.height : 0; |
2956 |
|
|
2957 |
|
event->area.x = max(0, event->area.x); |
2958 |
|
event->area.y = max(0, event->area.y); |
2959 |
|
|
2960 |
|
event->area.width = max (width, event->area.width); |
2961 |
|
event->area.height = max (height, event->area.height); |
2962 |
|
|
2963 |
return FALSE; |
return FALSE; |
2964 |
} |
} |
2965 |
|
|