Removed notifier SCREEN_CHANGED from creating menus or tooltips.
This one is used to re-initialize spaces, areas, regions in screen.
This commit is contained in:
2008-12-12 10:55:36 +00:00
parent 7f3a34d16c
commit e02c15151f

View File

@@ -354,7 +354,6 @@ ARegion *ui_tooltip_create(bContext *C, ARegion *butregion, uiBut *but)
ED_region_init(C, ar);
/* notify change and redraw */
WM_event_add_notifier(C, WM_NOTE_SCREEN_CHANGED, 0, NULL);
WM_event_add_notifier(C, WM_NOTE_WINDOW_REDRAW, 0, NULL);
return ar;
@@ -364,7 +363,6 @@ void ui_tooltip_free(bContext *C, ARegion *ar)
{
ui_remove_temporary_region(C, C->window->screen, ar);
WM_event_add_notifier(C, WM_NOTE_SCREEN_CHANGED, 0, NULL);
WM_event_add_notifier(C, WM_NOTE_WINDOW_REDRAW, 0, NULL);
}
@@ -670,7 +668,6 @@ uiMenuBlockHandle *ui_menu_block_create(bContext *C, ARegion *butregion, uiBut *
ED_region_init(C, ar);
/* notify change and redraw */
WM_event_add_notifier(C, WM_NOTE_SCREEN_CHANGED, 0, NULL);
WM_event_add_notifier(C, WM_NOTE_WINDOW_REDRAW, 0, NULL);
return handle;
@@ -681,7 +678,6 @@ void ui_menu_block_free(bContext *C, uiMenuBlockHandle *handle)
ui_remove_temporary_region(C, C->window->screen, handle->region);
MEM_freeN(handle);
WM_event_add_notifier(C, WM_NOTE_SCREEN_CHANGED, 0, NULL);
WM_event_add_notifier(C, WM_NOTE_WINDOW_REDRAW, 0, NULL);
}